#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 is indirection?
Describe the complexity of Binary search, Quicksort and various other sorting and searching techniques..
What is "Duff's Device"?
What is the equivalent code of the following statement in WHILE LOOP format?
What is function in c with example?
What are loops c?
When we use void main and int main?
What are the 3 types of structures?
Explain what does it mean when a pointer is used in an if statement?
Explain output of printf("Hello World"-'A'+'B'); ?
How can a program be made to print the name of a source file where an error occurs?
What is formal argument?
What are the scope of static variables?
What is a pointer and how it is initialized?
List the difference between a 'copy constructor' and a 'assignment operator' in C?