#include<stdio.h>
main()
{
int a=1;
int b=0;
b=++a + ++a;
printf("%d %d",a,b);
}
Answer Posted / anand
answer should be 3 5
b = 2 + 3
b = ++a + ++a
here the compiler will work as below
b = ++a + 2
thn
b = 3 + 2
thn
b = 5
| Is This Answer Correct ? | 9 Yes | 10 No |
Post New Answer View All Answers
What is the use of #define preprocessor in c?
How can I make sure that my program is the only one accessing a file?
What type is sizeof?
What is an example of structure?
How can I make it pause before closing the program output window?
Explain what standard functions are available to manipulate strings?
Define and explain about ! Operator?
What is a macro in c preprocessor?
What standard functions are available to manipulate strings?
What are the disadvantages of a shell structure?
Explain is it better to bitshift a value than to multiply by 2?
Q.1 write a program to create binary tree 1 to 16 numbers? Q.2 write a program to creat a binary search tree for the member that is given by user?
Give me the code of in-order recursive and non-recursive.
Can you add pointers together? Why would you?
Find the second largest element in an array with minimum no of comparisons and give the minimum no of comparisons needed on an array of size N to do the same.