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 are the Medici Family Inventions/ Achievements
PLS HELP ........................
B) In 150-200 words, describe an event (e.g. wedding, birthday, carnival...) This description should include the following the same order General details about
Si un auto cambia su velocidad de 75km/h a 105 km/h, en 8 segundos, calcule su aceleración.
help!!!! meeeeeeeeeeeee
According to Albert Bandura and others, which of the following will promote violent behavior, based on the principle of observational learning? Correct Answer(s
PLS HELP ME 16 and 17
This is the trial balance of Sandhill Co. on September 30. SANDHILL CO. Trial Balance September 30, 2022 Debit
advantages of non-traditional sports to traditional sports?
(Notimated as brainliest 25 points ) Triangle ABC has the following vertices: A(1,9) B(11,-7) C(-9,3) Is triangle ABC a right triangle, and why? Choose 1 answer