what is the value of b
if a=5;
b=++a + ++a
Answer Posted / sagar
here in b=++a + ++a;
a
Initial Value 5
First Prefix 6
Second Prefix 7
Final Equation b = 7 + 7 = 14...
So,correct answer is 14....
if the equation was as below:
c=++a;//a==6
d=++a;//a=7
b=c+d;//b=6+7=13
then b==13...
| Is This Answer Correct ? | 97 Yes | 29 No |
Post New Answer View All Answers
Explain with the aid of an example why arrays of structures don’t provide an efficient representation when it comes to adding and deleting records internal to the array.
Why c is called free form language?
What is the difference between int main and void main in c?
count = 0; for (i = 1;i < = 10; i++);count = count + i; Value of count after execution of the above statements will be a) 0 b) 11 c) 55 d) array
What is array in c with example?
What is signed and unsigned?
Can we replace the struct function in tree syntax with a union?
What are integer variable, floating-point variable and character variable?
what is diffrence between linear and binary search in array respect to operators?what kind of operator can be used in both seach methods?
write a program fibonacci series and palindrome program in c
Write the program that calculates and prints the average of several integers. Assume that the last value read is sentinel 9999.
What is variable and explain rules to declare variable in c?
What is FIFO?
Explain what is operator promotion?
What is the difference between text and binary modes?