NIRAL 2014 Code Guru - Pre Finals: All The Best!

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 1

NIRAL 2014

CODE GURU PRE FINALS


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

ALL THE BEST!

You might also like