What will be the output of
x++ + ++x?
Answer Posted / shashi shekhar
In this type of question the operation done from right side of the expression.Here we can see two types of increments pre and post increment,in post first the value assigned then increment but in pre first the value is incressed then the value assigned.
For example if x is initialized with a value
"1" then the this expression gives the output "4".
Is This Answer Correct ? | 4 Yes | 2 No |
Post New Answer View All Answers
Explain about block scope in c?
write a program to rearrange the array such way that all even elements should come first and next come odd
Is flag a keyword in c?
What is #line?
Why is c faster?
What is this infamous null pointer, anyway?
Write a C/C++ program to add a user to MySQL. The user should be permitted to only "INSERT" into the given database.
hello freinds next week my interview in reliance,nybody has an idea about it intervew questions..so tell
What does *p++ do? What does it point to?
What is wrong with this code?
What is main () in c?
Is there any demerits of using pointer?
What does the message "automatic aggregate intialization is an ansi feature" mean?
What does sizeof int return?
How can I do peek and poke in c?