Computer Science, asked by mishti102, 2 months ago

please help me i need it fast please

Attachments:

Answers

Answered by praptipatel04102005
2

Explanation:

(a) 5* ++x;

30

WORKING

    5* ++x

⇒ 5* 6       [∵ ++x will first increment x to 6 and then use it in the expression]

⇒ 30

(b) 5* x++;

25

WORKING

    5* x++

⇒ 5* 5       [∵ x++ will first use the current value of x in the expression which is 5. After that x is incremented to 6]

⇒ 25


anindyaadhikari13: Excellent !
Similar questions