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
What should malloc() do?
Can you please explain the difference between strcpy() and memcpy() function?
How do you print an address?
Given two strings S1 and S2. Delete from S2 all those characters which occur in S1 also and finally create a clean S2 with the relevant characters deleted.
What are the 4 types of programming language?
Which is the memory area not included in C program? give the reason
Are pointers integer?
Why is c so popular?
Find MAXIMUM of three distinct integers using a single C statement
Explain the term printf() and scanf() used in c language?
What are the two types of functions in c?
Place the #include statement must be written in the program?
What is the use of sizeof?
show how link list can be used to repersent the following polynomial i) 5x+2
What is time complexity c?