C
Programming and Technical
Programming
Program
Which of the following is the correct order of evaluation for the below expression?
z = x + y * z / 4 % 2 - 1
Options
1) * / % + - =
2) = * / % + -
3) / * % - + =
4) * % / - + =
Read Solution (Total 5)
-
- answer is 1)
according to the precedence in c...,* will be evaluated first followed by /,% and +,- have the next precedence,then followed by = i.e.,assignment - 8 years agoHelpfull: Yes(12) No(0)
- answer is 1 accordind to the precedence
first priority is *
2nd priority is /
3rd priority is %
4th priority is +
5th priority is -
6th priority is = - 5 years agoHelpfull: Yes(2) No(0)
- answer is 3
- 8 years agoHelpfull: Yes(0) No(9)
- Ans: 1
according to precendence of operators in c language - 7 years agoHelpfull: Yes(0) No(0)
- 1) is the correct answer.
- 6 years agoHelpfull: Yes(0) No(0)
C Other Question