what is the value of b
if a=5;
b=++a + ++a
Answer Posted / kaps
IT is defenetly 14...Ans = 14
Explanation:
Because ++a = 6
then again ++a = 7
Now compiler replace the both value with 7 (because of both
are of value of a).
So 7+7 = 14.
It is tested on turbo C...
try with adding one more ++a will give u ans 24(8+8+8) for
++a + ++a + ++a.
| Is This Answer Correct ? | 8 Yes | 3 No |
Post New Answer View All Answers
Are global variables static in c?
How was c created?
‘SAVEPOINT’ and ‘ROLLBACK’ is used in oracle database to secure the data comment. Give suitable examples of each with sql command.
Differentiate between declaring a variable and defining a variable?
How do you sort filenames in a directory?
What is new line escape sequence?
What is formal argument?
What is the description for syntax errors?
What does the message "automatic aggregate intialization is an ansi feature" mean?
The performance of an operation in several steps with each step using the output of the preceding step a) recursion b) search c) call by value d) call by reference
Explain what is the difference between the expression '++a' and 'a++'?
What is chain pointer in c?
What are global variables?
What are the key features in c programming language?
What is static memory allocation?