Math, asked by neogyanwesha, 1 month ago

Find the value of a if a*=++a/6+b++%3 [a=9,b=10] 

Give detailed answers of this question in the basis of Computer Application.​

Answers

Answered by tutulsheel1
0

Answer:

+= a++ - ++b + a

⇒ a = a + (a++ - ++b + a)

⇒ a = 5 + (5 - 10 + 6) [∵ a++ will first use current value of a then increment it to 6. ++b will increment b to 10 and use the incremented value. As a++ incremented a to 6 so the value of last a in the expression is 6]

⇒ a = 5 + 1

⇒ a = 6

Similar questions