#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
What is the difference between memcpy and memmove?
What is linear search?
Differentiate between ordinary variable and pointer in c.
What is clrscr ()?
What do you mean by command line argument?
hw can we delete an internal node of binary search tree the internal node has child node..plz write progarm
Explain bit masking in c?
write a program to convert a expression in polish notation(postfix) to inline(normal) something like make 723+* (2+3) x 7 (not sure) just check out its mainly printing expression in postfix form to infix.
I heard that you have to include stdio.h before calling printf. Why?
largest Of three Number using without if condition?
How do you define structure?
Why is c called a structured programming language?
What is pointer & why it is used?
How to check whether string is a palindrome, WITHOUT USING STRING FUNCTIONS?
what is the format specifier for printing a pointer value?