answersLogoWhite

0


Best Answer

The following are the C++ punctuators:

!

%

^

&

*

()

-

+

=

{}

|

~

[]

\

;

'

:

"

<

>

?

,

.

/

#

Some punctuators are also operators. The exact meaning of a punctuator is dependant upon the context. For instance, the open/close brace {} is used as a punctuator to delimit a class declaration, a function definition or a compound statement. But as an operator, it used to delimit an initialisation list.

The # punctuator only has meaning to the preprocessor, used to introduce a preprocessing directive.

Some punctuators can also be combined to produce other operators, such as:

::

.*

->

->*

&&

++

--

==

!=

<=

>=

+=

-=

*=

/=

%=

^=

|=

&=

<<

<<=

>>

>>=

?:

...

In addition, C++ also has the following punctuators as operators:

new

delete

and

and_eq

bitand

bitor

comp

not

not_eq

or

or_eq

xor

xor_eq

User Avatar

Wiki User

9y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is the definition of Punctuators and Operators in C plus plus?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Printf and scanf Operators in C and C plus plus?

No, they are functions. Operators are -> or ++or /=


C plus plus bit-wise operators?

Are very useful. Examples: &amp; | ^ ~


What are the storage allocation in C plus plus?

They mostly deal with pointers and new operators in memory.


What is used to test value of character or integer in c plus plus?

Use the comparison operators (==, &lt;, &lt;=, &gt;, &gt;=). All primitives (including char and int) support these built-in operators.


Compare java arithmetic and logic operators with c arithmetic and logical operators?

They are very similar,but when we do logic operators there are still some differences.In c or c plus plus ,logic true can be expressed as'true' or '0',but in java,true is just 'true'.If you gave a zero,it will treat it as type of integer ,and so as false.


What are special operators in c plus plus?

The only "special" operators in C++ are those that cannot be overloaded. That is; the dot member operator (.), pointer to member operator (.*), ternary conditional operator (:?), scope resolution operator (::), sizeof() and typeof().


What are the mathematical operators of c?

the mathematical operators of c are.....%,*,/,+,-


What are new and delete operators in c plus plus?

New and Delete are the memory management operators in c++,like c language we use malloc() and calloc() functions to allocate memory and free() functiong to release the memory similarily we use new to allocate memory in C++ and Delete to release the allocated memory....


What are the operators in c tokens?

All arithmetic, logical operators are operators in c tokens. As: +, - , ++, --, %, &amp;&amp;, &amp;, &gt;&gt;, &lt;&lt; etc.


Write a c plus plus program to find the largest among three numbers using ternary operators?

R = (A &gt; B &amp;&amp; A &gt; C) ? A : (B &gt; C) ? B : C; // parentheses not necessary - for clarity only


Casting in c plus plus?

Yes, you can cast in C++, both statically and dynamically. Objects can also be cast provided the class designer implemented the appropriate conversion operators.


What is definition of employee code in c plus plus?

la la land