what will be the output for the following expression? where a=2 and b=4. (++a) + (++b)=?
Answers
Answered by
9
Required Answer:-
Given:
To Find:
- The output of the expression - (++a) + (++b)
Solution:
Given,
So,
Hence, the output of the given expression will be - 8.
Answer:
- Output - 8.
Answered by
4
Given:
- a=2, b=4
To find:
- ++a + ++b=?
Calculating...
Correct Answer:-
Always Remember:-
- ++a or --a is a prefix increment decrement operator respectively which means first increase then move forward.
- a++ or a-- is a postfix increment decrement operator respectively which means first move forward then increase the value.
Similar questions