Saturday, March 14, 2009

R Systems Paper


Paper Type : Technical - C & C++
Test Date : 12 April 2007
Test Location : Inderprastha Engg. College, Ghaziabad
Posted By : Sourabh Verma

R SYSTEMS PAPER ON 12th APRIL AT GHAZIABAD



Technical questions on C/C++

R-System Noida.

1. if 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();

}



2. 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();

}



3. 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();

}


BEST OF LUCK

Sourabh Verma

Related Articles :


Stumble
Delicious
Technorati
Twitter
Facebook

0 comments:

Post a Comment

Career Launchers!!!

Note:

This blog can be viewed using all the browsers but can be best viewed in Mozilla Browser.
 

Career Launchers!!! Copyright © 2010 LKart Theme is Designed by Lasantha