Our Services : Video Editing Classes, Ethical Hacking Workshop, Computer Classes, PC/Laptop Repair, Routers Sell, UPS Sell, Printers Sell, Scanners Sell, Website Development, APP Development, Computer Components
Call : 9846618997 | Newroad Pokhara

[In Nepali] C++ Programming – Pt.3 – Operators

Operators :

ØAn operator is a symbol. E.G. +, -, &&, <, >, =, == e.t.c

ØCompiler identifies operator & performs specific mathematical or logical operations.

C/C++ Operators. . . 

# Arithmetic Operators :     *, /, %, +, –

# Logical Operators :     && (Logical AND), || (Logical OR), ! (Logical NOT)

# Increment & Decrement Operators :       ++ (increment), – – (decrement)

Increment & Decrement Operators can be PostFix or PreFix. In Postfix, variable is updated after result. And in prefix value is changed before the result.

# Relational Operators :   = = (equal to), != (Not equal), > < (greater than, less than)

= (greater than or equal to), <= (less than or equal to).

C/C++ Operators. . . 

# Cast Operators :  Used to convert a value from one type to another.

i.e.    (float) sum;     converts type to float.

# Bitwise Operators : Performs operation on actual bits present in each byte of a variable.

& (bitwise AND), ^ (bitwise XOR), | (bitwise OR) e.t.c.

# Assignment operators :  = (assign), += (assign with add) . . .

e.g. a= a+64;                a += 64;       (Both Same) 

For Video Explanation & Demo, see below

 

Related Post

READ  2017 - "Ethical Hacking Workshop 12" Starts here ! - Pokhara

Leave a Reply

Your email address will not be published. Required fields are marked *