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
Define recursion in c.
How to write a code for implementing my own printf() and
scanf().... Please hep me in this... I need a guidance...
Can you give an coding for c... Please also explain about
the header files used other than #include
Write a program to print factorial of given number without using recursion?
Difference between constant pointer and pointer to a constant.
What is static memory allocation? Explain
c program to compute AREA under integral
Given a valid 24 hour format time find the combination of the value and write a program ,do not hard the value and if any other inputs provided should work with the logic implemented Input: 11:30 Output: 13:10 Input: 18:25 Output: 21:58
what do you mean by inline function in C?
What is this infamous null pointer, anyway?
When should I declare a function?
Can we declare variables anywhere in c?
What do header files do?
What is the difference between call by value and call by reference in c?
How do I copy files?
What are the 5 organizational structures?