#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

how to check whether a linked list is circular.

11 Answers   Microsoft,


why nlogn is the lower limit of any sort algorithm?

0 Answers  


To reverse an entire text file into another text file.... get d file names in cmd line

0 Answers   Subex,


How to access command-line arguments?

4 Answers  


main() { int (*functable[2])(char *format, ...) ={printf, scanf}; int i = 100; (*functable[0])("%d", i); (*functable[1])("%d", i); (*functable[1])("%d", i); (*functable[0])("%d", &i); } a. 100, Runtime error. b. 100, Random number, Random number, Random number. c. Compile error d. 100, Random number

1 Answers   HCL, rsystems,


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

2 Answers  


can you use proc sql to manpulate a data set or would u prefer to use proc report ? if so why ? make up an example and explain in detail

0 Answers   TCS,


How to palindrom string in c language?

6 Answers   Google,


void main() { int i; char a[]="\0"; if(printf("%s\n",a)) printf("Ok here \n"); else printf("Forget it\n"); }

3 Answers   Accenture,


#ifdef something int some=0; #endif main() { int thing = 0; printf("%d %d\n", some ,thing); }

1 Answers  


In the following pgm add a stmt in the function fun such that the address of 'a' gets stored in 'j'. main(){ int * j; void fun(int **); fun(&j); } void fun(int **k) { int a =0; /* add a stmt here*/ }

1 Answers  


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

2 Answers  


Categories