Computer Science, asked by sinhasantosh41, 5 months ago

int p= 3, q; q = p++ - p++ % p ; find the value of p and q​

Answers

Answered by heyParam
0

Answer:

Value of p = 5 and q = -1

Answered by anindyaadhikari13
1

Question:-

Evaluate the following and find the value of p and q.

Working Out:-

Given,

p=3

q=p++ - p++%p;

Or,

q=3-4%5

Or,

q=3-4

Or,

q=-1

Now,

p=5

Answer:-

p=5 and q= -1.

Similar questions