Are The Names Used To Represent:, ,,, And: Keywords Cannot Be Used For
Are The Names Used To Represent:, ,,, And: Keywords Cannot Be Used For
They are reserved identifiers which cannot be used as names for the variables, constants,
Functions and labels in a program.
List of some keywords is given below:
%d signed integer.
%f float signed decimal.
%c single character.
An operator is a symbol which tells compiler to take an action on operands
and yield a value. The Value on which operator operates is called as operands. C++
supports wide verity of operators. Supported operators are listed below:
Operator Explanation
Arithmetic Operators Used for arithmetic operations
Relational Operators Used for specifying relation between two operands
Logical Operators Used for identifying the truth value of the expression
Bitwise Operators Used for shifting the bits
Assignment Operators Used for assigning the value to the variable
If is a keyword
If, is decision making statement.
If is the simplest form of selection construct.
If is used to execute or skip a statement by checking a condition.
The condition, written inside if, is true then if block gets executed.
in this statement:
Both blocks of statement can never be executed.
Both blocks of statement can never be skipped.
Executes one block of statement when the condition is true/false.
When the if condition becomes true then if block gets executed.
When the if condition becomes false then else block gets executed.
While loop is used for repetitive execution of the statements based on the given conditions.
If condition fails then control goes outside the while loop.
If condition becomes true then while loop body will be executed.
True condition can be any non-zero number and Zero is considered as false condition
Syntax: WHILE (condition) { Statements}
It is a model of function
It is also called function prototype.
It ends with a semi colon.
It is required when you define a function in one source file and you call that function in another file.
It is usually placed just before the main( ).
It is not required if the function definition is written before main( ).
Return type + function name + ( parameter list ) + Terminator
The process of declaring multiple functions with the same name but different parameters
is called function overloading
The memory locations in the array are known as elements of the array.
The total number of elements in the array is called length of the array
Each element of the array has unique number which is called index
Expression Result
Address + Number Address
Address – Number Address
Address – Address Number
Address + Address Illegal