What will be the output of
x++ + ++x?
Answer Posted / prem
if x=3
y=x++ + ++x;
y will be 8
x will be 5
calculating y part
1) x++ is 3 and x will be 4
2)++x is 5 bcz x is incremented then assigned so x=5
so y finally gives 8.
| Is This Answer Correct ? | 4 Yes | 4 No |
Post New Answer View All Answers
What is a example of a variable?
what is use of malloc and calloc?
What are the usage of pointer in c?
pgm to find any error in linklist(in single linklist check whether any node points any of previous nodes instead of next node)
What is the difference between declaring a variable by constant keyword and #define ing that variable?
How do you convert strings to numbers in C?
The statement, int(*x[]) () what does in indicate?
How do you determine a file’s attributes?
A c program to display count values from 0 to 100 and flash each digit for a secong.reset the counter after it reaches 100.use for loop,. pls guys hepl me.. :(
What does char * * argv mean in c?
Why should I prototype a function?
What does %2f mean in c?
List some of the dynamic data structures in C?
What is a node in c?
What is ponter?