#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
How can I copy just a portion of a string?
What are identifiers c?
#define MAX(x,y) (x) >(y)?(x):(y) main() { inti=10,j=5,k=0; k= MAX(i++,++j); printf("%d..%d..%d",i,j,k); }
Can stdout be forced to print somewhere other than the screen?
What is a volatile keyword in c?
Is null a keyword in c?
What is break statement?
explain what is an endless loop?
Which driver is a pure java driver
Should I use symbolic names like true and false for boolean constants, or plain 1 and 0?
Explain how can I write functions that take a variable number of arguments?
Write a function stroverlap that takes (at least) two strings, and concatenates them, but does not duplicate any overlap. You only need to worry about overlaps between the end of the first string and the beginning of the second string. Examples: batman, manonthemoon = batmanonthemoon batmmamaman, mamamanonthemoon = batmmamamanonthemoon bat, man = batman batman, batman = batman batman, menonthemoon = batmanmenonthemoon
Explain what is the difference between null and nul?
Who is the founder of c language?
Why does notstrcat(string, "!");Work?