output for following code???

main()
{
int x=2,y,z;
x*=3+2;
printf("1.%d\n",x);
x*=y=z=4;
printf("2.%d %d %d\n",x,y,z);
x=y==z;
printf("3.%d\n",x);
x==(y=z);
printf("%d",x);
}

Answers were Sorted based on User's Feedback



output for following code??? main() { int x=2,y,z; x*=3+2; printf(&qu..

Answer / nandhini

1.10
2.40
3.4
4

Is This Answer Correct ?    1 Yes 0 No

output for following code??? main() { int x=2,y,z; x*=3+2; printf(&qu..

Answer / manikanta

1.10
2.40 4 4
3.1
1

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Interview Questions

f(char *p) { p=(char *)malloc(sizeof(6)); strcpy(p,"HELLO"); } main() { char *p="BYE"; f(p) printf("%s",p); } what is the output?

9 Answers   Hughes, Tech Mahindra,


program to locate string with in a string with using strstr function

2 Answers   Huawei, Shreyas,


What is the difference between static and global variables?

1 Answers  


What is %g in c?

0 Answers  


What is the difference between null pointer and the void pointer?

3 Answers  






Does c have function or method?

0 Answers  


Can you please explain the difference between exit() and _exit() function?

0 Answers  


Explain the priority queues?

0 Answers  


Why void is used in c?

0 Answers  


Why c is known as a mother language?

0 Answers  


What is the meaning of typedef struct in c?

0 Answers  


how to determine the complexity of an algorithm as log(n)

1 Answers   Google,


Categories