main()
{
int x=5,y=10,z=0;
x=x++ + y++;
y=y++ + ++x;
z=x++ + ++y;
printf("%d%d%d\n",x,y,z);
}



main() { int x=5,y=10,z=0; x=x++ + y++; y=y++ + ++x; z=x++ + ++y; printf("%d%d%d\n",..

Answer / vaishnavi

x=16,y=28,z=34

Is This Answer Correct ?    3 Yes 10 No

Post New Answer

More C Interview Questions

If I want to initialize the array like. int a[5] = {0}; then it gives me all element 0. but if i give int a[5] = {5}; then 5 0 0 0 0 is ans. what will I do for all element 5 5 5 5 5 in a single statement???

3 Answers   Amdocs, IBM,


What does c mean in basketball?

1 Answers  


what does ‘segmentation violation’ mean?

1 Answers  


Should I use symbolic names like true and false for boolean constants, or plain 1 and 0?

1 Answers  


What is the use of static variable in c?

1 Answers  


main() { int i = -3,j=2,k=0,m; m= ++i || ++j && ++k; printf("%d%d%d",i,j,k,m); }

7 Answers   HCL,


What is C language Terminator?

15 Answers   TCS,


cavium networks written test pattern ..

1 Answers   Cavium Networks,


How can I determine whether a machines byte order is big-endian or little-endian?

1 Answers  


The difference between printf and fprintf is ?

1 Answers   Baan Infotech,


How would you print out the data in a binary tree, level by level, starting at the top?

6 Answers   Amazon, Microsoft,


difference between Low, Middle, High Level languages in c ?

1 Answers   Bosch, Infosys,


Categories