int a=1;
printf("%d %d %d",a++,a++,a);

need o/p in 'c' and what explanation too






int a=1; printf("%d %d %d",a++,a++,a); need o/p in 'c' and what explanatio..

Answer / kodhaiej@gmail.com

2 1 3

need explanation

Is This Answer Correct ?    0 Yes 0 No

Post New Answer




More C Code Interview Questions

Write a routine to draw a circle (x ** 2 + y ** 2 = r ** 2) without making use of any floating point computations at all.

2 Answers   Microsoft, Mentor Graphics,


struct point { int x; int y; }; struct point origin,*pp; main() { pp=&origin; printf("origin is(%d%d)\n",(*pp).x,(*pp).y); printf("origin is (%d%d)\n",pp->x,pp->y); }

1 Answers  


how to delete an element in an array

2 Answers   IBM,


main() { struct student { char name[30]; struct date dob; }stud; struct date { int day,month,year; }; scanf("%s%d%d%d", stud.rollno, &student.dob.day, &student.dob.month, &student.dob.year); }

1 Answers  


main() { static int var = 5; printf("%d ",var--); if(var) main(); }

1 Answers  






Finding a number multiplication of 8 with out using arithmetic operator

8 Answers   NetApp, Eyeball,


Write a program to print a square of size 5 by using the character S.

6 Answers   Microsoft,


main(){ char a[100]; a[0]='a';a[1]]='b';a[2]='c';a[4]='d'; abc(a); } abc(char a[]){ a++; printf("%c",*a); a++; printf("%c",*a); }

2 Answers  


writte a c-programm to display smill paces

2 Answers  


void main () { int x = 10; printf ("x = %d, y = %d", x,--x++); } a. 10, 10 b. 10, 9 c. 10, 11 d. none of the above

2 Answers   HCL,


main() { int y; scanf("%d",&y); // input given is 2000 if( (y%4==0 && y%100 != 0) || y%100 == 0 ) printf("%d is a leap year"); else printf("%d is not a leap year"); }

1 Answers  


main() { int i=5; printf("%d%d%d%d%d%d",i++,i--,++i,--i,i); }

7 Answers  






Categories