#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
in ‘C’ language for Matrix Multiplication fails” Introspect the causes for its failure and write down the possible reasons for its failure.
What is a nested loop?
Can we replace the struct function in tree syntax with a union?
What is a char in c?
What is the difference between procedural and declarative language?
What is #line used for?
Can you please explain the difference between syntax vs logical error?
What is string length in c?
What are local static variables? How can you use them?
What is the collection of communication lines and routers called?
What is merge sort in c?
What is c language and why we use it?
how to execute a program using if else condition and the output should enter number and the number is odd only...
What are the disadvantages of a shell structure?
What are the 32 keywords in c?