View Single Post
Join Date: Nov 2008
Posts: 2
Reputation: svetlana6167 is an unknown quantity at this point 
Solved Threads: 0
svetlana6167 svetlana6167 is offline Offline
Newbie Poster

my final questions help please

 
0
  #1
Nov 29th, 2008
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...
Reply With Quote