#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 void pointer? When is a void pointer used?
write a program to find lcm and hcf of two numbers??
program in c to print 1 to 100 without using loop
How does C++ help with the tradeoff of safety vs. usability?
Why do we use header files in c?
Explain how do you search data in a data file using random access method?
Is c still used in 2019?
to write a program, that finds the minimum total number of shelves, including the initial one, required for this loading process. The packets are named A, B, C, D, E …….. Any numbers of packets with these names could be kept in the shelf, as in this example: [ZZLLAAJKRDFDDUUGGYFYYKK]. All packets are to be loaded on cars. The cars are lined in order, so that the packets could be loaded on them. The cars are also named [A, B, C, D, E,………….].
Are enumerations really portable?
What do mean by network ?
main() {int a=200*200/100; printf("%d",a); }
CopyBits(x,p,n,y) copy n LSBs from y to x starting LSB at 'p'th position.