#include<stdio.h>
main()
{
int a=1;
int b=0;
b=++a + ++a;
printf("%d %d",a,b);
}
Answer Posted / vijay r15
ans 3 6
Let me explain
First a=1&b=0
b=++a + ++a;
The operation will be as
b= ++1 + ++a
=2 + ++a
=2 + ++2
=2 + 3=a+a now a=3
Remember here is the trick
Now b= a + a
I.e b=3+3=6
Got it
Vijay r15
For any clarification mail to
raj.vijay55@gmail.com
| Is This Answer Correct ? | 2 Yes | 4 No |
Post New Answer View All Answers
write a program that will open the file, count the number of occurences of each word in the the complete works of shakespeare. You will then tabulate this information in another file.
What does 1f stand for?
Write a code on reverse string and its complexity.
What is string in c language?
Explain the red-black trees?
A float occupies 4 bytes in memory. How many bits are used to store exponent part? since we can have up to 38 number for exponent so 2 ki power 6 6, 6 bits will be used. If 6 bits are used why do not we have up to 64 numbers in exponent?
What does main () mean in c?
What is the correct declaration of main?
What is s in c?
How many bytes is a struct in c?
How to create struct variables?
What is storage class?
Can I use base-2 constants (something like 0b101010)? Is there a printf format for binary?
What is a loop?
Differentiate between declaring a variable and defining a variable?