#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 |
Q. where is the below variables stored ? - volatile, static, register
Explain pointer. What are function pointers in C?
What are the two types of functions in c?
what is the value of 'i'? i=strlen("Blue")+strlen("People")/strlen("Red")-strlen("green")
7 Answers Cadence, JNTU, Zen Technologies,
is it possible to change the default calling convention in c ?
which operator having highest precedence? a.)+ b.)++ c.)= d.)%
1,1,5,17,61,217,?,?.
What are lookup tables in c?
write a c program that prints all multiples of 3between 1 and 50.
What is d'n in c?
How do you generate random numbers in C?
How to print "I Love My India" without using semi colon?