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

Why is chemical digestion important
what is the range of the equation y=-|x-8|+3
The fastest a human has ever run is 27 miles per hour. How many miles per minute did the human run?
3x36÷(30÷5x2) Please solve using PEMDAS
Put these numbers in order from least to greatest 35%, 1/3, 9/2, 2/3, 3/5, 0.05, -4
What is the exposition of Diary of a Wimpy Kid th Third Wheel
A coral reef ecosystem might include all of the following organisms: phytoplankton, clams, octopus, moray eel and barracuda. The following shows a basic food ch
What is 12 divided by one third
Which explains how the moon causes high tides on the earth? A. The moon's gravity pushes on the earth. The push indents the earth's watery envelope and create
Ricardo took the following steps to simplify the expression below but was surprised to hear that his answer was incorrect. Which of the following best describes