An operator specifies an operation to be performed. C is rich in operator. Operators join the various variables and constants to from an expression. Some operator requires one operand and some require more than one …
Read More »Operators
What is Arithmetic operators In C Programming Language?
Arithmetic Operators are used to Arithmetical calculation. There are five Arithmetic operators in C: Operator Purpose + Addition – Subtraction * Multiplication / Division % Remainder after integer division
Read More »What is Relational operators in C Programming Language?
Relational operators are used to compare two operands and to check whether they are equal, unequal, greater than and lesser than other. There are 6 relational operators: Operator Meaning < Less than > Greater than …
Read More »What is Logical operators In C Programming Language?
Logical operators are used to combine two or more relational expressions. There are three logical operators: Operator Meaning && Logical And || Logical or ! Logical not The expression which combines two or more relational …
Read More »Increment & Decrement operators
These types of operators operate on only one operand, therefore these operators are also called Unary operators. These two powerful operators in C are + + (Increment), _ _ (Decrement). Operands must be declared as …
Read More »What is Bitwise operators In C Programming Language?
The smallest element in memory on which we are able to operate as yield is a byte, and we operate on it by use of the data type char Bitwise operator is used for manipulation …
Read More »What is Conditional & ternary operators In C Programming Language?
The conditional operator? and: are sometimes called ternary operators. A ternary operator is one which contains three operands. The general form of ternary operator is: exp 1 ? exp 2 : exp 3 The operator works as, if exp 1 is evaluated first. …
Read More »What is The comma operators In C Programming Language?
This operator is used to link the related expression together the expression is separated by the, operator. An example program showing uses of comma operator: Output of the program: Here firstly value 1 is assigned …
Read More »What is Size of operator In C Programming Language?
The size of operator returns a number of bytes the operand occupies in memory. The operand may be a variable, a constant or a data type qualifier. It is a compile time operator. An example …
Read More »What is Assignment operator In C Programming Language?
Assignment operators are used to assign the result of an expression to a variable. The most commonly used assignment operator is (=). eg: i=i+10; i=i+10 is an assignment expression which assigns the value of i+10 to i. Expression like …
Read More »Type modifier In C Programming Language
The basic data types may have modifier preceding them to indicate special properties of the object being declared. These modifiers change the meaning of the basic data types to suit the specific needs. These modifiers are unsigned, signed, long and short. …
Read More »