The document provides two coding questions. The first asks for the output of a C++ program that uses pointers and pointer arithmetic to output strings. The second asks to write programs to swap two numbers and find the largest of two numbers without using typical operators for those tasks. The document wishes the reader good luck on their pre-finals exam.
The document provides two coding questions. The first asks for the output of a C++ program that uses pointers and pointer arithmetic to output strings. The second asks to write programs to swap two numbers and find the largest of two numbers without using typical operators for those tasks. The document wishes the reader good luck on their pre-finals exam.
The document provides two coding questions. The first asks for the output of a C++ program that uses pointers and pointer arithmetic to output strings. The second asks to write programs to swap two numbers and find the largest of two numbers without using typical operators for those tasks. The document wishes the reader good luck on their pre-finals exam.
The document provides two coding questions. The first asks for the output of a C++ program that uses pointers and pointer arithmetic to output strings. The second asks to write programs to swap two numbers and find the largest of two numbers without using typical operators for those tasks. The document wishes the reader good luck on their pre-finals exam.
1.What is the output of the following program? #include<iostream.h> #include<conio.h> char *c[]={"ENTER","NEW","POINT","FIRST"}; char **cp[]={c+3,c+2,c+1,c}; char ***cpp=cp; void main() { clrscr(); cout<<**++cpp<<"\n"; cout<<*--*++cpp+3<<"\n"; cout<<*cpp[-2]+3<<"\n"; cout<<cpp[-1][-1]+1<<"\n"; cout<<*--cp[1]+0; getch(); } 2. You can write your code in c/c++/Java (i)Write a program to swap two numbers without using arithmetic operators and third variable (ii)Write a program to print largest of two numbers without using comparison operators