void main()
{
int i=5;
printf("%d",i++ + ++i);
}
Answers were Sorted based on User's Feedback
Answer / sachin
ans :11
how?
-> i++ => i=i+1 => i=6;
-> ++i => i=i =>i=5(first assign the value);
i=i+1;
so i++ + ++i=6 + 5=11 i.e.ans
Is This Answer Correct ? | 3 Yes | 31 No |
What is else if ladder?
how to construct a simulator keeping the logical boolean gates in c
what is the main use of c where it can use the c
What is a const pointer?
In a byte, what is the maximum decimal number that you can accommodate?
Why we use stdio h in c?
What is the Difference between Class and Struct?
What is main function in c?
Mention four important string handling functions in c languages .
Can include files be nested? How many levels deep can include files be nested?
write a program to print the all 4digits numbers & whose squares must me even numbers?
Explain the advantages and disadvantages of macros.