C operator priority

priority The operator Name or meaning Use the form Combined with the direction instructions
1 (a) The parenthesis operator that adjusts the priority 5 From left to right 5
[] Array subscript access operator 5 From left to right 5
. Member selection (object) 5 From left to right 5
-> Member selection (pointer) 5 From left to right 5
2 The minus operator 5 From right to left 5
~ Bitwise inverse operator 5 From right to left 5
++ Increment operator 5 From right to left 5
Decrement operator 5 From right to left 5
* Value operator 5 From right to left 5
& Fetch the address operator 5 From right to left 5
! Logical non-operators 5 From right to left 5
(type) Cast casting 5 From right to left 5
sizeof Length operator 5 From right to left 5
3 / In addition to 5 From left to right 5
* take 5 From left to right 5
% Remainder (modulo) 5 From left to right 5
4 + add 5 From left to right 5
Reduction of 5 From left to right 5
5 << Shift to the left 5 From left to right 5
>> Moves to the right 5 From left to right 5
6 > Is greater than 5 From left to right 5
< Greater than or equal to 5 From left to right 5
> = Less than 5 From left to right 5
< = Less than or equal to 5 From left to right 5
7 = = Is equal to the 5 From left to right 5
! = Is not equal to 5 From left to right 5
8 & Bitwise and 5 From left to right 5
9 ^ The bitwise exclusive or 5 From left to right 5
10 | Bitwise or 5 From left to right 5
11 && Logic and 5 From left to right 5
12 | | Logic or 5 From left to right 5
13 ? : Conditional operator 5 From left to right 5
14 = The assignment operator 5 From left to right 5
/ = In addition to after the assignment 5 From left to right 5
* = By the assignment 5 From left to right 5
% = Take the module and assign it 5 From left to right 5
+ = And after the assignment 5 From left to right 5
– = The assignment after reduction 5 From left to right 5
< < = Assign after left shift 5 From left to right 5
> > = Assign after right shift 5 From left to right 5
& = Assignment by bit and post 5 From left to right 5
^ = Xor post assignment by bit 5 From left to right 5
| = Assignment by bit or post 5 From left to right 5
15 . 5 From left to right 5

Description:

Operators of the same precedence, the order of operation is determined by the direction of combination. Simple to remember is:! > > > relational operator arithmetic operators && > | | > the assignment operator

The data type

The sequence Type and Description
1 Basic types: These are arithmetic types and include two types: integer types and floating point types.
2 Construct types: They include array types, structure types, common body types, enumeration types, and function types
3 3 Pointer Types
4 4 void: The type specifier void indicates that no value is available.

expression

To calculate

judge

Cycle control

function

An array of

Pointer to the

string

Structure type

Program structure

Basic graphics functions for ACLLib

The list

Interactive graphic design

file

When the OS runs your compiled C++ program, the first line of main() isn’t the very first instruction that gets executed.

There is a certain amount of work that needs to be done between the OS handing over control to your program, and it being ready to execute your code.

Some examples are

  • getting the command line from the OS, and arranging it so it looks like an argc,argv[] that can be passed to your main()
  • calling the constructors for any global objects (cin,cout,cerr are good examples).
  • preparing for exceptions
  • preparing for threads

All that pre-work is collectively your crtexe.c

Is it specific to the Visual Studio? Well it’s specific to any particular compiler. But in general, most hosted environments are going to have something similar in concept, even if not identical in name and function.