void main()
{
int i=5;
printf("%d",i++ + ++i);
}
Answer Posted / koushik ramesh
this program output is 12.
first is i++ is 5 only because this the post increment
first using the value after increment.
whenever i++ + the value of is 6.
++ i means this is the pre-increment.first increment
the value after using the variable this step i will become
7.
total is i++ =5
i++ + =6
++ i=7
i++ + ++i= 12. this is posted by Ramesh(MCA)Nizam
college.HYDERABAD
| Is This Answer Correct ? | 6 Yes | 5 No |
Post New Answer View All Answers
Write a C program to count the number of email on text
what is a constant pointer in C
What is character constants?
What is c method?
Which header file is essential for using strcmp function?
how can f be used for both float and double arguments in printf? Are not they different types?
How can I implement sets or arrays of bits?
a value that does not change during program execution a) variabe b) argument c) parameter d) none
What is the correct code to have following output in c using nested for loop?
What is an lvalue?
Explain how can I pad a string to a known length?
What does it mean when the linker says that _end is undefined?
Which node is more powerful and can handle local information processing or graphics processing?
How can you access memory located at a certain address?
What do header files do?