Computer Science, asked by preetgupta, 1 year ago

Solve:
a=5, b=3, p=5& q=4:
a) boolean c= 5*3>a;
b) boolean c= 5+3/4>10?++a/++b;
c) r= ++p + q++ + q--;
d) r=p/q + --q/q++;

Answers

Answered by 31shivani
1
a) boolean c= 5*3>a
Boolean c= 15>5
boolean c= true.
Ans: true
b) boolean c= 5+3/4>10? ++a/++b
boolean c= 8/4>10? 6/4
boolean c=2>10?1
boolean c= false.
Ans: false.
c) r= ++p+q+++q--
r= 6 + 4 +5
r=15
Ans:15
d) r=p/q + - - q/q++
r= 5/4+ 3/3
r= 1+1
r=2
Ans: 2

Hope it is helpful.
Similar questions