#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
#include main() { char s[] = "Bouquets and Brickbats"; printf(" %c, ",*(&s[2])); printf("%s, ",s+5); printf(" %s",s); printf(" %c",*(s+2)); }
What's the total generic pointer type?
What is null pointer constant?
Is it cc or c in a letter?
What is operator promotion?
What is %d used for?
int i=3; this declaration tells the C compiler to a) reserve space in memory to hold the integer value b) associate the name i with this memory location c) store the value 3 at this location d) all the above
c program to compute AREA under integral
What is the use of structure padding in c?
What's the difference between constant char *p and char * constant p?
What are the types of pointers in c?
Can the size of an array be declared at runtime?
Differentiate fundamental data types and derived data types in C.
What are data structures in c and how to use them?
What is the use of printf() and scanf() functions?