#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 |
What is a structure member in c?
write a programme that inputs a number by user and gives its multiplication table.
Is null valid for pointers to functions?
Explain how can a program be made to print the name of a source file where an error occurs?
how to exchnage bits in a byte b7<-->b0 b6<-->b1 b5<-->b2 b4<-->b3 please mail me the code if any one know to rajeshmb4u@gmail.com
Do you know what are bitwise shift operators in c programming?
define c
main() { inta=10,b=20; a>=5?b=100:b=200; printf("%d ",b); }
How can you allocate arrays or structures bigger than 64K?
Is it possible to pass an entire structure to functions?
Print all the palindrome numbers.If a number is not palindrome make it one by attaching the reverse to it. eg:123 output:123321 (or) 12321
How to write a code for reverse of string without using string functions?