Computer Science, asked by samirafarooqui8, 1 year ago

If a = 10; find the value of : a = ++a + a/3 - 6;


ιnnocenтвoy: ek dm se topa ho ka be
ιnnocenтвoy: tum bahut chahuniya rhe ho
ιnnocenтвoy: tum bahut chahuniya rhe ho
ιnnocenтвoy: abe ye line q bola
ιnnocenтвoy: ise me bolne wala tha
ιnnocenтвoy: beta ye jo khopdi pe kali kali ghass ugaye ho n sb chilwa denge
ιnnocenтвoy: hmse n kayede me baat kiya kro

Answers

Answered by ιnnocenтвoy
1
First a++ a value is 10 then ++a a value is 11 that is substituted in expr to b=11+11=22 then a post increment is performed to make value of a to 12.....coming to printf compiler is right associative so first fourth value that is ++a is evaluated sets a value to 13 then a and then a++ wil be printed same value then a value is set to 14 
Answered by Anonymous
1
hey mate here is ur ans
a=++a+a/3-6
=11+11/3-6
=11+3.67-6
=14.67-6
=8.67

hope it is helpful
if the data type is in int
then ur ans is 9
Similar questions