themboallan9
themboallan9 themboallan9
  • 10-02-2022
  • Computers and Technology
contestada

Discuss operator precedence in C programming with examples ​

Respuesta :

tonb
tonb tonb
  • 10-02-2022

Answer:

See picture for the operator precedence.

A very common pitfall is the << (shift) operator.

It has lower precedence than, for instance, the + operator, so a statement like:

int a = 3;

int c = a << 2 + 1;

will produce a different result than:

int c = (a << 2) + 1;

The first will evaluate to c = a<<3.

Ver imagen tonb
Answer Link

Otras preguntas

What is 2,901 rounded to the nearest hundred
Ah pwease help! It’s due tonight!! Geometry!!
How are the protons held in the nucleus?
All objects emit electromagnetic radiation as a result of _____.
Based on the suprimacy Clause, what must a judge support in the event of a legal conflict?
I need help on questions 15 and 16. -Thank you
Which group of words is a phrase? A. You will nail the test B. In the rain C. The time was up D. She is busy E. The statue
Original price $120 discount 36% what’s the sales price?
The following table represents the total cost, in dollars (y) to join a gym for x number of months. The cost includes a one-time joining fee of $10. Does the
a circle has a radius of 2.5 and a diameter of 5 what is the area and circumference of the circle​