1.

Which of these operators have the highest order of precedence?(a) ‘(‘ and ‘)’(b) ‘*’ and ‘/’(c) ‘~’ and ‘^’(d) ‘+’ and ‘-‘Asked question is from Application of Stacks in section Application of Stacks of Data Structures & Algorithms II have been asked this question during a job interview.

Answer»

The correct ANSWER is (c) ‘~’ and ‘^’

To explain: The highest ORDER of precedence is ~ and ^ followed by ‘*’ ,’ /’, ‘+’ ,’-‘ andthen BRACES ‘(‘ ‘)’.



Discussion

No Comment Found

Related InterviewSolutions