#include<stdio.h>
int main()
{
int x=2,y;
y=++x*x++*++x;
printf("%d",y);
}
Output for this program is 64.
can you explain how this output is come??



#include<stdio.h> int main() { int x=2,y; y=++x*x++*++x; printf("%d",y); } ..

Answer / suganya

the answer must be 45

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More C Code Interview Questions

Given an array of size N in which every number is between 1 and N, determine if there are any duplicates in it. You are allowed to destroy the array if you like.

21 Answers   ABC, eBay, Goldman Sachs, Google, HUP, Microsoft, TATA,


Write a program that find and print how many odd numbers in a binary tree

1 Answers  


How to palindrom string in c language?

6 Answers   Google,


main() { int i = 100; clrscr(); printf("%d", sizeof(sizeof(i))); } a. 2 b. 100 c. 4 d. none of the above

5 Answers   HCL,


What is the main difference between STRUCTURE and UNION?

13 Answers   HCL,






Write a single line c expression to delete a,b,c from aabbcc

2 Answers   Microsoft,


create a login program that ask username and password. if you input username or password 3 times wrong, the program will terminate else the program will prompt a message "congratulations"

2 Answers  


main() { int i; i = abc(); printf("%d",i); } abc() { _AX = 1000; }

2 Answers  


Given an array of characters which form a sentence of words, give an efficient algorithm to reverse the order of the words (not characters) in it.

2 Answers   Wipro,


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

1 Answers  


#include<conio.h> main() { int x,y=2,z,a; if(x=y%2) z=2; a=2; printf("%d %d ",z,x); }

1 Answers  


Is the following code legal? struct a { int x; struct a b; }

1 Answers  


Categories