<< Chapter < Page Chapter >> Page >
An abbreviated precedence chart for C++ operators typically used in a modular structured programming fundamentals course.

An operator is a language-specific syntactical token (one or more symbols) that causes an action to be taken on one or more operands. The following item provides an abbreviated list of those C++ operators that are typically taught in a programming fundamentals course that teaches modular structured programming concepts.

The first column shows the precedence (the higher precedence is 1 or it goes first) and operators that have the same precedence also have the same associativity (the associativity is only listed once for the group of operators). Decrement is two minus signs, but some word processing software programs might have problems printing two minus signs and convert it to a double dash. Insertion (two<signs) and extraction (two>signs) might also have printing problems. These printing problems are noted in the comments with emphasized text.

PR OPERATOR NAME SYMBOL(S) COMMENTS ASSOICIATIVITY CONNEXIONS MODULE
1 function call () Left to Right m19145
1 index [] aka array index m21316
2 class member . a period Right to Left m20796
2 postfix increment ++ unary m20499
2 postfix decrement -- unary, two minus signs m20499
3 indirection * unary, aka dereference Right to Left m22152
3 address & unary m22148
3 unary positive + unary, aka plus m20501
3 unary negative - unary, aka minus m20501
3 prefix increment ++ unary m20499
3 prefix decrement -- unary, two minus signs m20499
3 cast (type) unary m18744
3 sizeof sizeof (type) unary m18736
3 logical NOT ! unary m19847
4 multiply * Left to Right m18706
4 divide / m18706
4 modulus % remainder m18706
5 add + Left to Right m18706
5 subtract - m18706
6 insertion << writing, two less than signs Left to Right m18835
6 extraction >> reading, two greater than signs m18835
7 less than < Left to Right m19549
7 greater than > m19549
7 less than or equal to <= m19549
7 greater than or equal to >= m19549
8 equality == equal to Left to Right m19549
8 inequality != not equal to m19549
9 logical AND && Left to Right m19847
10 logical OR || Left to Right m19847
11 conditional ? : trinary Left to Right m20811
12 assignment = Right to Left m18725
12 addition assignment += m18743
12 subtraction assignment -= m18743
12 multiplication assignment *= m18743
12 division assignment /= m18743
12 modulus assignment %= m18743
13 sequence or comma , Left to Right m18690

Questions & Answers

Biology is a branch of Natural science which deals/About living Organism.
Ahmedin Reply
what is phylogeny
Odigie Reply
evolutionary history and relationship of an organism or group of organisms
AI-Robot
ok
Deng
what is biology
Hajah Reply
cell is the smallest unit of the humanity biologically
Abraham
what is biology
Victoria Reply
what is biology
Abraham
HOW CAN MAN ORGAN FUNCTION
Alfred Reply
the diagram of the digestive system
Assiatu Reply
allimentary cannel
Ogenrwot
How does twins formed
William Reply
They formed in two ways first when one sperm and one egg are splited by mitosis or two sperm and two eggs join together
Oluwatobi
what is genetics
Josephine Reply
Genetics is the study of heredity
Misack
how does twins formed?
Misack
What is manual
Hassan Reply
discuss biological phenomenon and provide pieces of evidence to show that it was responsible for the formation of eukaryotic organelles
Joseph Reply
what is biology
Yousuf Reply
the study of living organisms and their interactions with one another and their environment.
Wine
discuss the biological phenomenon and provide pieces of evidence to show that it was responsible for the formation of eukaryotic organelles in an essay form
Joseph Reply
what is the blood cells
Shaker Reply
list any five characteristics of the blood cells
Shaker
lack electricity and its more savely than electronic microscope because its naturally by using of light
Abdullahi Reply
advantage of electronic microscope is easily and clearly while disadvantage is dangerous because its electronic. advantage of light microscope is savely and naturally by sun while disadvantage is not easily,means its not sharp and not clear
Abdullahi
cell theory state that every organisms composed of one or more cell,cell is the basic unit of life
Abdullahi
is like gone fail us
DENG
cells is the basic structure and functions of all living things
Ramadan
What is classification
ISCONT Reply
is organisms that are similar into groups called tara
Yamosa
Got questions? Join the online conversation and get instant answers!
Jobilize.com Reply

Get Jobilize Job Search Mobile App in your pocket Now!

Get it on Google Play Download on the App Store Now




Source:  OpenStax, Programming fundamentals - a modular structured approach using c++. OpenStax CNX. Jan 10, 2013 Download for free at http://cnx.org/content/col10621/1.22
Google Play and the Google Play logo are trademarks of Google Inc.

Notification Switch

Would you like to follow the 'Programming fundamentals - a modular structured approach using c++' conversation and receive update notifications?

Ask