#include<stdio.h>
main()
{
int a=1;
int b=0;
b=++a + ++a;
printf("%d %d",a,b);
}
Answer Posted / banavathvishnu
let consider the statement
b = ++a + ++a;
++a will be 2
++a again will be 3
now replace its value in the expression
b = a + a = 3+3=6
hence a is 3 and b is 6
| Is This Answer Correct ? | 26 Yes | 12 No |
Post New Answer View All Answers
List at least 10 sorting methods indicating their average case complexity, worst case complexity and best case complexity.
What is the difference between text files and binary files?
Is c is a procedural language?
why programs in c are running with out #include
What is function pointer c?
What is storage class?
Explain pointers in c programming?
How can I recover the file name given an open stream?
What does a pointer variable always consist of?
What is zero based addressing?
Is a house a mass structure?
What is difference between scanf and gets?
List some of the static data structures in C?
What is function prototype in c language?
Why is c called a structured programming language?