0% found this document useful (0 votes)
16 views

Operator Name Associativity Operators: Primary Scope Resolution Left To Right

A data type specifies the type of data that can be stored, such as integer, real, or Boolean. Operator precedence and associativity determine the order in which operators are evaluated. Break exits the current loop or switch entirely, while continue skips to the next iteration. A function prototype specifies the function name, parameters, and return type without defining the body.
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
16 views

Operator Name Associativity Operators: Primary Scope Resolution Left To Right

A data type specifies the type of data that can be stored, such as integer, real, or Boolean. Operator precedence and associativity determine the order in which operators are evaluated. Break exits the current loop or switch entirely, while continue skips to the next iteration. A function prototype specifies the function name, parameters, and return type without defining the body.
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

What is a

data type ?

Operator
precedence
and
associativit
y

Difference
between
continue
and break ?

a data type or simply type is a classification identifying one of various types of data, such
as real, integer or Boolean, that determines the possible values for that type

Operator Name

Associativity Operators

Primary scope resolution

left to right

::

Primary

left to right

Unary

right to left

++ -- +
new delete

C++ Pointer to Member

left to right

.*->*

Multiplicative

left to right

Additive

left to right

Bitwise Shift

left to right

<<

Relational

left to right

<

Equality

left to right

==

Bitwise AND

left to right

&

Bitwise Exclusive OR

left to right

Bitwise Inclusive OR

left to right

Logical AND

left to right

&&

Logical OR

left to right

||

Conditional

right to left

? :

Assignment

right to left

Comma

left to right

()

[ ]

-> dynamic_cast typeid


-

&

(type_name)

sizeof

>>
>

<=

>=

!=

+=

-=

*=

/=

<<=

>>=

%=

&=

^=

|=

Breakstatement is used to transfer control of the program outside loop or switch case statement either
conditionally or unconditionally. Continuestatement is used to skip some statement of the loop and
moves to the next iteration in the loop.

Prototype of
function

In computer programming, a function prototype or function interface is a declaration of a function that


specifies the function's name and type signature (arity, parameter types, and return type), but omits
thefunction body. The term is particularly used in C and C++.

You might also like