Computer Science, asked by anushkadas9b, 6 months ago

int a=20,q=0
p=++a + - -a;
q- = p; find the valve of q

Answers

Answered by MYHEROtimes
0

Answer:

q = 40

Explanation:

hope it helps

mark as brainliest

Answered by Oreki
4

Given Snippet:

int a = 20, q = 0;

int p = ++a + --a;

q -= p;

After Execution:

q = -41

Explanation:

p = ++a + --a

p = 21 + 20

p = 41

Now,

q -= p or q = q - p

q = 0 - 41

q = -41

Similar questions