#include<stdio.h>
main()
{
int a=1;
int b=0;
b=++a + ++a;
printf("%d %d",a,b);
}
Answer Posted / anand
answer should be 3 5
b = 2 + 3
b = ++a + ++a
here the compiler will work as below
b = ++a + 2
thn
b = 3 + 2
thn
b = 5
Is This Answer Correct ? | 9 Yes | 10 No |
Post New Answer View All Answers
Write a program which returns the first non repetitive character in the string?
what do you mean by enumeration constant?
Process by which one bit pattern in to another by bit wise operation is?
program to convert a integer to string in c language'
What are qualifiers?
What is the difference between near, far and huge pointers?
Explain the use of bit fieild.
What are dangling pointers? How are dangling pointers different from memory leaks?
What is the value of uninitialized variable in c?
What are the two forms of #include directive?
Should I learn c before c++?
Why c is procedure oriented?
What are global variables and explain how do you declare them?
What is the difference between specifying a constant variable like with constant keyword and #define it? i.e what is the difference between CONSTANT FLOAT A=1.25 and #define A 1.25
write a program to find the given number is prime or not