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
When can you use a pointer with a function?
What are the preprocessor categories?
find the value of y y = 1.5x+3 for x<=2 y = 2x+5 for x>2
explain how do you use macro?
Explain what is meant by high-order and low-order bytes?
5 Write an Algorithm to find the maximum and minimum items in a set of ānā element.
Write a program to input the price of 1 burger and the number of burgers eaten by a group of friends .print the total amount to be paid by the group?
What is the use of clrscr?
Place the #include statement must be written in the program?
#define MAX(x,y) (x) >(y)?(x):(y) main() { inti=10,j=5,k=0; k= MAX(i++,++j); printf("%d..%d..%d",i,j,k); }
Why can't I perform arithmetic on a void* pointer?
Why c is called object oriented language?
Is there any data type in c with variable size?
How to write c functions that modify head pointer of a linked list?
How do we open a binary file in Read/Write mode in C?