Operators

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 expressions is termed as logical expression or compound relational expression. The result of a logical expression is either one or …

What is Logical operators In C Programming Language? 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. If the result is true then exp 2 is executed, otherwise exp 3 is executed. A program of ternary operator: …

What is Conditional & ternary operators In C Programming Language? 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   i=i+10,  i=i-5,  i=i*2 etc. can be rewritten using shorthand assignment operators. e.g.:   i=i+5 is equivalent to i+=5             i=i*(y+1)  is equivalent to   i*=(y+1) Operator …

What is Assignment operator In C Programming Language? 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. It is also possible to give these modifiers in combination, e.g., unsigned long int. eg:- Modifier for char Data Type …

Type modifier In C Programming Language Read More »

Scroll to Top