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 threaded binary trees?

670


What are static variables in c?

616


Explain what is the best way to comment out a section of code that contains comments?

710


Write a function stroverlap that takes (at least) two strings, and concatenates them, but does not duplicate any overlap. You only need to worry about overlaps between the end of the first string and the beginning of the second string. Examples: batman, manonthemoon = batmanonthemoon batmmamaman, mamamanonthemoon = batmmamamanonthemoon bat, man = batman batman, batman = batman batman, menonthemoon = batmanmenonthemoon

1730


In this problem you are to write a program that will cut some number of prime numbers from the list of prime numbers between 1 and N.Your program will read in a number N; determine the list of prime numbers between 1 and N; and print the C*2 prime numbers from the center of the list if there are an even number of prime numbers or (C*2)-1 prime numbers from the center of the list if there are an odd number of prime numbers in the list.

1371






What is 2 d array in c?

544


Why do we need a structure?

580


Explain what will the preprocessor do for a program?

591


What are the differences between Structures and Arrays?

599


Write a code to generate a series where the next element is the sum of last k terms.

725


I have a varargs function which accepts a float parameter?

568


diff between exptected result and requirement?

1592


What is the use of a semicolon (;) at the end of every program statement?

759


What is wrong in this statement?

595


How many loops are there in c?

570