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


Please Help Members By Posting Answers For Below Questions

What is sizeof c?

609


Write a factorial program using C.

644


What is static and auto variables in c?

567


What are local variables c?

551


Given below are three different ways to print the character for ASCII code 88. Which is the correct way1) char c = 88; cout << c << " ";2) cout.put(88);3) cout << char(88) << " "; a) 1 b) 2 c) 3 d) constant

668






Is c still used?

604


What are the modifiers available in c programming language?

740


Are negative numbers true in c?

600


What is a pointer in c?

683


What is the difference between declaring a variable by constant keyword and #define ing that variable?

2699


What is a example of a variable?

553


Can I use base-2 constants (something like 0b101010)? Is there a printf format for binary?

579


Write a progarm to find the length of string using switch case?

1612


Once I have used freopen, how can I get the original stdout (or stdin) back?

628


how many types of operators are include in c language a) 4 b) 6 c) 8 d) 12

653