1. printf("%d", 10*5/10); what is this result?
2. printf("%d", 10+5-5); what is this result?
3. a=d++ +(b=a); a=4,b=4,d=4 a=?
4. c=a+ a++ - b--; a=4,b=4 c=?
5. c=a+ ++a - b--; a=4,b=5 c=?
6. if(a==0 && b==0) printf("1);
else
if(a==0 && b==0) printf("2");
else printf("3");
(if a=1 and b=0) what is the result?
(if a=0 and b=0) what is the result?
(if a=0 and b=1) what is the result?
please help me thanks regards...
Looks like a homework dump. Have you tried it? At least cut and paste numbers 1 and 2 into a program and run it and see for yourself. You'll find out exactly what the result is.
Reputation Points: 2614
Solved Threads: 687
Posting Expert
Offline 5,374 posts
since Jan 2008