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

X=5y.          y=10x+20 Help please
X=5y.          y=10x+20 Help please
How many chromosomes does each new cell contain after mitosis if the original cell had 52 original cell chromosomes
A grade has 81 girls and 72 boys. The grade is spilt into groups that have the same ratio of boys to girls as the whole grade. How many girls are in a group tha
6 divded by 2/3 = what
Describe how the Hawaiian Islands were formed and how they are evidence for mantle plumes.
How do plant populations in a community change over time?
Describe how the Hawaiian Islands were formed and how they are evidence for mantle plumes.
How many chromosomes does each new cell contain after mitosis if the original cell had 52 original cell chromosomes
what are three physical properties of aluminum foil