R SYSTEMS PAPER ON 12th APRIL AT GHAZIABAD

R SYSTEMS PAPER ON 12th APRIL AT GHAZIABAD

R-System  Noida. Technical questions on C/C++

1if base address of array a is 65584

#include

#include

void main()

{

int a[5]={2,1,4,7,8};

clrscr();

printf(“%u\t%u”, a+1,&a+1);

getch();

}
Print value of i ?

#include

#include

void main()

{

int i=1*4/3-27%3^2+100*0.5(4>3?1:2);

clrscr();

printf(“%d”, i);

getch();

}
2 write output of program.

#include

#include

void main()

{

int a[5]={2,1};

clrscr();

printf(“%\d\t%d\t%d”, a[3],a[4],a[2]);

getch();

}

 

4.        #include

#include

void main()

{

int a=2,b=3,c,d;

clrscr();

c=a++||++b;

d=++a&&b++;

printf(“%d\t%d”, c,d);

getch();

}

5.        #include

#include

void main()

{

int a=2,b=3;

clrscr();

for(i=1;i<3;i++)

{

printf(“%d”,a);

continue;

printf(“%d”,b);

break;

}

getch();

}

Leave a Reply0