Saved Bookmarks
| 1. |
Plzzzzzz answer the questions |
|
Answer» <P>Answer: Explanation: I am stating each line a=10 B=++a; ->a=11,b=11 print(a) ->11 print(b) ->11 here there's a typo maybe p=--a; -> p=10,a=10 a++; -> a=11 print(a) -> 11 c=b++; ->c=11,b=12 print(c) ->11 output 11 11 11 11 a=11 now if there is b=--a instead of p=--a then only CHANGE is b=--a; -> a=10, b=10 ..... c=b++; -> c=10 ,b=11 output 11 11 10 11 a=11 now SECOND question....... int c= a%a++ + ++a - ++a; int c=2%2 + 3 - 4 -> c=-1 output -1 Hope it helps :-) |
|