adplus-dvertising
frame-decoration

Question

Arrange the following overloaded operators in increasing order of precedence?

%, <<, &, /, +

a.

‘%’ < ‘<<‘ < ‘+’ < ‘-‘ < ‘&’ < ‘/’

b.

‘<<‘ < ‘&’ < ‘%’ < ‘-‘ < ‘/’ < ‘+’

c.

‘&’ < ‘-‘ <‘%’ < ‘<<‘ < ‘/’ < ‘+’

d.

‘/’ < ‘-‘ < ‘%’ < ‘+’ < ‘<<‘ < ‘&’

Answer: (b).‘<<‘ < ‘&’ < ‘%’ < ‘-‘ < ‘/’ < ‘+’

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. Arrange the following overloaded operators in increasing order of precedence? %, <<, &, /, +