what is the value of b
if a=5;
b=++a + ++a
Answer Posted / ashfak yeafi
The answer is 14.
The increment operator has a higher priority than the arithmetic operator.
So the equation will be,
b=7+7=14
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Why we use conio h in c?
To print the pattern 1 2 3 4 5 10 17 18 19 6 15 24 25 20 7 14 23 22 21 8 13 12 11 10 9
Study the following C program :call_me (myvar)int myvar;{ myvar +- 5; }main(){int myvar;myvar = 3;call_me(myvar);printf("%d ",myvar);What will be printed a) 3 b) 5 c) 8 d) symbol
If errno contains a nonzero number, is there an error?
how to count no of words,characters,lines in a paragraph.
Which programming language is best for getting job 2020?
What is the difference between %d and %i?
Explain the array representation of a binary tree in C.
Given only putchar (no sprintf, itoa, etc.) write a routine putlong that prints out an unsigned long in decimal. [ I gave the obvious solution of taking % 10 and / 10, which gives us the decimal value in reverse order. This requires an array since we need to print it out in the correct order. The interviewer wasn't too pleased and asked me to give a solution which didn't need the array ].
What is d'n in c?
What are the different types of endless loops?
What is the purpose of ftell?
How can I do graphics in c?
How to establish connection with oracle database software from c language?
How do you print only part of a string?