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
Explain threaded binary trees?
What are static variables in c?
Explain what is the best way to comment out a section of code that contains comments?
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
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.
What is 2 d array in c?
Why do we need a structure?
Explain what will the preprocessor do for a program?
What are the differences between Structures and Arrays?
Write a code to generate a series where the next element is the sum of last k terms.
I have a varargs function which accepts a float parameter?
diff between exptected result and requirement?
What is the use of a semicolon (;) at the end of every program statement?
What is wrong in this statement?
How many loops are there in c?