#include<stdio.h>
main()
{
int a=1;
int b=0;
b=++a + ++a;
printf("%d %d",a,b);
}
Answer Posted / ashok
initially a=1,b=0
++a=2 //1+1=2
++a=3 //2+1=3
b=2+3=5
answer:a=3 b=5
| Is This Answer Correct ? | 6 Yes | 4 No |
Post New Answer View All Answers
What are the types of assignment statements?
Is c is a high level language?
Explain 'bus error'?
How can I call system when parameters (filenames, etc.) Of the executed command arent known until run time?
Write a program to generate random numbers in c?
What is a char c?
Why c language?
How can you increase the allowable number of simultaneously open files?
What is the most efficient way to store flag values?
develop algorithms to add polynomials (i) in one variable
What does c mean in standard form?
Why is event driven programming or procedural programming, better within specific scenario?
How many types of sorting are there in c?
Which header file should you include if you are to develop a function which can accept variable number of arguments?
What is volatile variable in c?