#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
What is a list in c?
List some of the dynamic data structures in C?
What are the types of c language?
What is the use of sizeof?
write a program to concatenation the string using switch case?
What is the difference between text and binary modes?
#define f(g,h) g##h main O int i=0 int var=100 ; print f ("%d"f(var,10));} wat would be the output??
Stimulate calculator using Switch-case-default statement for two numbers
Explain about the functions strcat() and strcmp()?
Given a valid 24 hour format time find the combination of the value and write a program ,do not hard the value and if any other inputs provided should work with the logic implemented Input: 11:30 Output: 13:10 Input: 18:25 Output: 21:58
What is self-referential structure in c programming?
How can I open files mentioned on the command line, and parse option flags?
Is there sort function in c?
How can you tell whether a program was compiled using c versus c++?
What is volatile c?