void main()
{
int x,y=2,z;
z=(z*=2)+(x=y=z);
printf("%d",z);
}

Answers were Sorted based on User's Feedback



void main() { int x,y=2,z; z=(z*=2)+(x=y=z); printf("%d",z); }..

Answer / jack

4

Is This Answer Correct ?    4 Yes 3 No

void main() { int x,y=2,z; z=(z*=2)+(x=y=z); printf("%d",z); }..

Answer / sanjay bk

8400,8521, when you run program then program giving output is different different answer.

Is This Answer Correct ?    2 Yes 2 No

void main() { int x,y=2,z; z=(z*=2)+(x=y=z); printf("%d",z); }..

Answer / govind_srm

858993456

Is This Answer Correct ?    1 Yes 3 No

void main() { int x,y=2,z; z=(z*=2)+(x=y=z); printf("%d",z); }..

Answer / l09

8

Is This Answer Correct ?    1 Yes 3 No

Post New Answer

More C Code Interview Questions

main() { char a[4]="HELL"; printf("%s",a); }

3 Answers   Wipro,


#include<stdio.h> main() { int i=1,j=2; switch(i) { case 1: printf("GOOD"); break; case j: printf("BAD"); break; } }

1 Answers  


How to swap two variables, without using third variable ?

104 Answers   AB, ADP, BirlaSoft, Cisco, Cygnet Infotech, HCL, Hewitt, Honeywell, HP, IBM, Infosys, Manhattan, Microsoft, Mobius, Percept, Satyam, SofTMware, TCS, Wipro, Yamaha,


could you please send the program code for multiplying sparse matrix in c????

0 Answers  


#include<stdio.h> main() { struct xx { int x; struct yy { char s; struct xx *p; }; struct yy *q; }; }

2 Answers  






how to print 1 2 3 4 5 6 7 8 9 10 9 8 7 6 5 4 3 2 1 using any loop(for or while) only once(only 1 loop) and maximum 2 variables using C.

19 Answers   Cap Gemini, Infosys,


What is the match merge ? compare data step match merge with proc sql merge - how many types are there ? data step vs proc sql

0 Answers  


How we will connect multiple client ? (without using fork,thread)

3 Answers   TelDNA,


main() { printf("%x",-1<<4); }

3 Answers   HCL, Sokrati, Zoho,


Is the following code legal? void main() { typedef struct a aType; aType someVariable; struct a { int x; aType *b; }; }

1 Answers  


main() { int c[ ]={2.8,3.4,4,6.7,5}; int j,*p=c,*q=c; for(j=0;j<5;j++) { printf(" %d ",*c); ++q; } for(j=0;j<5;j++){ printf(" %d ",*p); ++p; } }

2 Answers   CSS, Wipro,


write a program in c to merge two array

2 Answers  


Categories