#include<stdio.h>
main()
{ int i=5;
printf("%d",i*i-- - --i*i*i++ + ++i);
}
tell the answer with correct reason .specially reason is
important nt answer
ans by turbo c is -39
Answer / myname
It it not an easy question.
After investigating it a little bit, I would say:
- It is undefined behaviour, since "i" is being modified more than once between two sequence points.
- I bet that the turbo c answer is not -39, but -34 (5*5 - 4*4*4 + 5) = -34 (not important, anyway, since any other compiler can reorder the operations and give you any other result since, as I have previously said, it is undefined behaviour).
| Is This Answer Correct ? | 0 Yes | 0 No |
a c code by using memory allocation for add ,multiply of sprase matrixes
Why does everyone say not to use scanf? What should I use instead?
write a program to rearrange the array such way that all even elements should come first and next come odd
what is the output for the code : main() { int i,j; printf("%d %d ",scanf("%d%d",&i,&j)); }
What is the g value paradox?
a linearly ordered set of data elements that have the same structure and whose order is preserved in storage by using sequential allocation a) circular b) ordinary c) array d) linear list
How can you restore a redirected standard stream?
What is %g in c?
can we store values and addresses in the same array? explain
What is floating point constants?
main difference between c and c++ language
nic scientist exam