Skip to main content

Posts

Showing posts from November, 2010

Assignment Operator

Assignment Operator :   The Operator who assigns a value or expression called Assignment Operator General form of Assignment Operator Variable_name= expression  Single Assignment: If we assign only one variable to a value is called Single Assignment. Example:   X=5; Y=z; etc. Multiple Assignments: If we assign many variable to a value is called Multiple Assignment. Example: x=y=z=5; A=b=c=Pi; etc. Compound Assignment: If we assign a statement to a value is called Compound Assignment. Example: x=y+5; x=x+5; it also can be written as x+=5; x=x-5; it also can be written as x-=5; etc.

Operator in C Programming Language.

Operator: C has many built in Operator. There are four main operators in c Programming Language. 1.        Arithmetic Operator 2.        Relational Operator 3.        Logical Operator 4.        Bitwise Operator But there are some special Operators, such as Assignment Operator Conditional Operator Unary Operator etc.

Hexadecimal and Octal Constant in C Programming

Octal:   The number system based on 8 is called octal and uses the digits 0 through 7. In octal, the number 15 is the same as 13 in decimal. Hexadecimal: The base 16 number system is called hexadecimal and uses the digits 0 through 9 plus the letters A through F, which stand for 10, 11, 12, 13, 14, and 15, respectively. For example, the hexadecimal number A is 10 in decimal.