Motionzen
☰
×
◈ Introduction
◈ WIN-IT
◈ Smartplay Technologies
◈ TATA Power
◈ Sasken Technology
◈ MREC Tech
◈ RRSTB Consultancy
◈ Methode Electronics
◈ Hyundai Mobis
◈ Dexcel Electronices
◈ Data Patterns
◈ PROTECH
◈ VVDN - I
◈ VVDN - II
◈ VVDN - III
◈ UST Global - I
◈ UST Global - II
◈ UST Global - III
◈ Other Companies - I
◈ Other Companies - II
◈ Other Companies - III
Home
About
Consulting
Training
Tutorial
Interview Questions
Contact
Interview Questions
Other IT Companies Interview Questions
Home
Company Interview Experience
◈ Introduction
◈ WIN-IT
◈ Smartplay Technologies
◈ TATA Power
◈ Sasken Technology
◈ MREC Tech
◈ RRSTB Consultancy
◈ Methode Electronics
◈ Hyundai Mobis
◈ Dexcel Electronices
◈ Data Patterns
◈ PROTECH
◈ VVDN - I
◈ VVDN - II
◈ VVDN - III
◈ UST Global - I
◈ UST Global - II
◈ UST Global - III
◈ Other Companies - I
◈ Other Companies - II
◈ Other Companies - III
Interview Questions
Other IT Companies Interview Questions
« Prev
Next »
Other IT Companies Interview Questions
Find output of the following programs
Program 1 #include
main() { int *p=0x300; *p=90; printf("%d\n",*p); } Program 2 main() { char x[]="india is the best"; char y[25]; char *p=&x[0]; char *q=&y[0]; /*while(*p!='\0') { *q=*p; p++; q++; }*/ while(*q++=*p++); *q='\0'; printf("%s\n",y); } Program 3 main() { int a,b,c; scanf("%d %d",&a,&b,printf("enter the numbers:")); /*c=a; a=b; b=c;*/ //a=a+b-(b=a); a^=b^=a^=b; printf("a=%d b=%d\n",a,b); } Program 4 main() { int x; printf("enter the no:"); scanf("%d",&x); switch(x) { case x*1:printf("1st case\n"); case x*2:printf("2nd case\n"); default:printf("default case\n"); } } Program 5 int sm(int *ss,int *pp) { int a,b; a=5+6; b=5*6; ss=a; pp=b; } main() { int s,p; sm(&s,&p); printf("%d %d \n",s,p); } Program 6 main() { int a; //10>3?a=90:a=100; //10>3?(a=90):(a=100); a=10>3?90:100; printf("%d\n",a); } Program 7 main() { int a=10; /*if(a>3) return 1; else return 0;*/ return (a>3?1:0); } Program 8 #include
union unit { int x; char y; }; union neon { union unit u; char ch; }; main() { union neon n={50}; printf("%d %c %c\n",n.u.x,n.ch,n.u.y); } Program 9 main() { char a[]={'ra','ma'}; int i; for(i=0;i
« Prev
Next »
Helpful Links
Sateeshkg Home
Interview Questions
Corporate Training
Recommended Books
Linux Consulting
Apply for Job Assistance
If you have any queries please email us at
info@motionzen.com