#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
Describe the header file and its usage in c programming?
What tq means in chat?
What is the best organizational structure?
Declare the structure which contains the following members and write in C list of all students who score more than 75 marks. Roll No, Name, Father Name, Age, City, Marks.
What is #line in c?
Can you think of a logic behind the game minesweeper.
An arrangement of information in memory in such a way that it can be easily accessed and processed by a programming language a) string b) data structure c) pointers d) array
int far *near * p; means
How can I discover how many arguments a function was actually called with?
Find MAXIMUM of three distinct integers using a single C statement
Can we use any name in place of argv and argc as command line arguments?
What is memcpy() function?
An instruction which is analysed and acted upon by the processor prior to the compiler going its work a) directive b) constructive c) constant d) absolute mode
Is null a keyword in c?
What is ctrl c called?