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

Which of the following did not happened during Jefferson's presidency? * .Taxes were repealed..The Alien & Sedition Acts expired. .The size of the military
construiti enunturi cu cuvintele: Bastina , Ciubar , Zaharicale , A fauri , A navali , A tabari , De-a fir a par , Toporisca​
Help Please and thank you
Do you agree with the consequences that the Raiders faced? Why or why not?
Would Galileo have been treated differently if his observations had supported what the people in charge already believed? ( Reasonable answer please 2-3 sentenc
Help me out? (already answered the ones filled in) Thank you! (Answer all of them tysm!!!)
Krutika was thinking of a number. Krutika doubles it, then adds 19 to get an answer of 65. What was the original number?
which fraction is equal to 7 3/10​
What is the volume of the rectangular prism shown ?
Has anyone ever read grounded? please awnser