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
Difference between malloc() and calloc() function?
What is a pointer and how it is initialized?
How can I send mail from within a c program?
Explain which function in c can be used to append a string to another string?
What are nested functions in c?
What is the difference between far and near ?
What is page thrashing?
A global variable when referred to in another file is declared as this a) local variable b) external variable c) constant d) pointers
What does it mean when a pointer is used in an if statement?
What is a protocol in c?
What are the two forms of #include directive?
What is a class c rental property?
When should the const modifier be used?
Subtract Two Number Without Using Subtraction Operator
Explain the array representation of a binary tree in C.