#include<stdio.h>
main()
{
int a=1;
int b=0;
b=++a + ++a;
printf("%d %d",a,b);
}
Answer Posted / banavathvishnu
let consider the statement
b = ++a + ++a;
++a will be 2
++a again will be 3
now replace its value in the expression
b = a + a = 3+3=6
hence a is 3 and b is 6
| Is This Answer Correct ? | 26 Yes | 12 No |
Post New Answer View All Answers
Did c have any year 2000 problems?
please give me a VIRTUSA sample palcement papers.... you will only send TECHNICAL SECTION..... that is help for me Advance Thanks........................
console I/O functions means a) the I/O operations done on disk b) the I/O operations done in all parts c) the input given through keyboard is displayed VDU screen d) none of the above
Why string is used in c?
Why array is used in c?
Is int a keyword in c?
What do you mean by scope of a variable in c?
Explain how do you determine whether to use a stream function or a low-level function?
What is time complexity c?
Write a function that will take in a phone number and output all possible alphabetical combinations
What are the advantages and disadvantages of pointers?
Write a code to generate divisors of an integer?
Write a program for Overriding.
What is the use of static variable in c?
How can I use a preprocessorif expression to ?