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
What are the different types of endless loops?
What is the concatenation operator?
Are the variables argc and argv are always local to main?
Linked lists -- can you tell me how to check whether a linked list is circular?
What is array of structure in c programming?
How do you redirect a standard stream?
difference between Low, Middle, High Level languages in c ?
What is the use of getchar functions?
How pointers are declared?
What is the use of define in c?
Given two strings S1 and S2. Delete from S2 all those characters which occur in S1 also and finally create a clean S2 with the relevant characters deleted.
What is c programing language?
a way in which a pointer stores the address of a pointer which stores the value of the target value a) reference b) allocation c) multiple indirection d) none
How can you restore a redirected standard stream?
program to convert a integer to string in c language'