{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

G char ch char character type variable type char

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: stants. For Character character variable declaration we use character char data type data unsigned char data type data e.g. char ch; char : character type variable , (type char) occupies 1 byte and char can store only one character can 8 8 OPERATORS An operator is a symbol that causes the compiler to take an action. Commonly used operators in C++ are Arithmetic operators Assignment operators Arithmetic Assignment Operators Logical operators Increment & decrement operators Conditional Operator Conditional 9 9 Arithmetic operator The operators who perform arithmetic operations are called Arithmetic operators. operators. These operators are: Symbol Meaning Operation + Addition 2+5 = 7 - Subtraction 5-2 = 3 * Multiplication 5*2 = 10 / Division 5/2 = 2.5 % Modulus (Remainder) 5%2 = 1 10 10 Precedence or Priority of Arithmetic Precedence operators operators In an expression in C++, the operations are performed in an order which is called ‘Order of Precedence of Operations’ 1. 2. 3. right. First of all, parenthesi...
View Full Document

{[ snackBarMessage ]}

Ask a homework question - tutors are online