Computer Science, asked by 7407734130, 11 months ago

Give the output of the following snippet: a+=++a*++a/--a%a-- When a=3​

Answers

Answered by khushisinha388
0

Answer:

a%€£¥×₩+₩(&'dhusiwoqooa

Answered by AskewTronics
0

5 is the value of a for the above code snip.

Explanation:

  • If the above code will be executed in the c,c++ and Java language, then the 'a' variable will assign the value 5. It is because "++a" will increase the value of a +1 and "--a" will decrease the value of a by 1. So the above expression is like after putting value is:-

           a=3+4*4/2%3.

           a=3+16/2%3

            a=3+8%3 (The a%b operator is used to find the remainder when the b divides the a).

           a=3+2

           a=5.

  • Hence the value of a from the statement is 5.

Learn More:

  • Increament and decreament operator : https://brainly.in/question/12450875
Similar questions