what is the value of b
if a=5;
b=++a + ++a

Answer Posted / madhu cherukuri

a=5
b=++a +++a;
ANS:14
in this case the data will be storing in CPU register so the
result is 14 only.

volatile int a=5;
b=++a + ++a;
ANS:13
the data will be stored in directly memory

Is This Answer Correct ?    33 Yes 15 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain how can I right-justify a string?

625


Hai sir, I had planned to write the NIC scientific engineer exam , plz post the sample question......

1744


What is a memory leak? How to avoid it?

577


How can I generate floating-point random numbers?

608


What is function prototype in c with example?

580






What are the 4 data types?

602


what is use of malloc and calloc?

1385


any function have arguments one or more OR not . it is compulsary a) any function compulsary have one or more arguments b) any function did not have arguments. It is not compulsary c) it is optional it is not compulsary d) none of the above

645


What is the difference between fread buffer() and fwrite buffer()?

674


int i[2], j; int *pi;i[0] = 1; i[1] = 5; pi = i; j = *pi + 1 + *(pi + 1)Value of j after execution of the above statements will be a) 7 b) 6 c) 4 d) pointer

657


c program to compute AREA under integral

1811


What are directives in c?

548


What is structure pointer in c?

573


What is an expression?

658


What are preprocessor directives in c?

638