Computer Science, asked by sarthakkulkarni412, 5 hours ago

if int p=5,q=4, the value of r would be 1. r=p + q ++ + q--; 2. r= p / q + - - q / q + +; 2 points 14 2. 15 2 .14 3 .none of the above​

Answers

Answered by Sanskar260
0

Answer:

1. r= p + q++ + q--

= 5 + 4 + 5

= 14

2. r= p / q + --q / q++

= 5/4 + 3/3

= 1.25 + 1

= 2.25

= 2

Therefore, correct option is 14, 2

Similar questions