+ 3
Help !
Void main() { Int x=5,y=3; Int s=0; S+=(x++)+y*(y++)+x+(++y); Cout<<s; } Why the output is 27
14 Antworten
+ 17
👉👉U must see the precedence table for operators used in c++ to see which operator have more precdence & will execute first 👈👈
/*for solving all these types of questions based on precedence order , use the order & solve it*/
+ 6
first there is a syntax error plz replace Void Int S and Cout with void int s and cout because c++ is a case sensitive language and second don't do ++y and y++ in a single line this will cause unexpected result because precedence of ++y and y++ is same then it depends on compiler that compiler may calculate ++y first or y++ first in both the cases answer is different
+ 6
Charan bro x++ is post increment operator so it gives x= 5 not 6 in expression
+ 3
27
+ 3
Hmm Thank you
+ 3
I also clear with assignment operations
+ 2
multiply
+ 1
What about the * sign
+ 1
yes you are right