What will be the output of
x++ + ++x?
Answer Posted / shivu
4
printf or any other expression executes from right. So first
prefix increment. then 2 and assigned to y. and will get add
with the result again, then it will increment.
now the value of x is 3. but the output is 4.
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Where we use clrscr in c?
Write a function stroverlap that takes (at least) two strings, and concatenates them, but does not duplicate any overlap. You only need to worry about overlaps between the end of the first string and the beginning of the second string. Examples: batman, manonthemoon = batmanonthemoon batmmamaman, mamamanonthemoon = batmmamamanonthemoon bat, man = batman batman, batman = batman batman, menonthemoon = batmanmenonthemoon
which of the following statement is wrong a) mes=123.56; b) con='T'*'A'; c) this='T'*20; d) 3+a=b;
Write a program to swap two numbers without using third variable?
Why can't I perform arithmetic on a void* pointer?
Explain b+ tree?
What is array of pointers to string?
What are header files and what are its uses in C programming?
Why clrscr is used in c?
What are the features of the c language?
What is a header file?
What is the difference between fread buffer() and fwrite buffer()?
Can a variable be both static and volatile in c?
In c programming typeing to occupy the variables in memory space. if not useing the variable the memory space is wasted.ok, how to avoid the situation..? (the variable is used & notused)
What is storage class?