ankitweblogic logo
W e b t u t o r i a l s

C Tutorial

Programing Approach


Flow Chart

Define C

Define Programming

C - Syntax

Compiler vs Interpreter

C - Variables

C - Keywords

C - Data Types

C - Comments

Turbo C - Shortcut keys

C - Operators

Hierarchy of Operators

Ex: Arithmetic Operator

C - Formatting Output

Constant Variable

C - Escape Sequence

C - if , switch

Ex: If condition

Ex: Inc / Dec Operator

C - loops

Ex: Loops

C - Nesting Of loops

Ex: Nested Loops

Jumping Statements

C - Arrays 1D

C - Arrays 2D

C - Sorting


Character I/O Function

C - String Functions

Ex: Strings

Array of Strings

C - Math Functions

User-defined Function

Exercise Function

C - Types of Functions

Storage Class

C - Header Files

C - Preprocessor

C - Pointers

C - Structures

C - Typedef

C - File Handling

Ex: File Handling

Command Line Argument


C - Operators

An operator is an symbol that tells the compiler to perform some specific mathematical or logical calculation. C - language is rich in built-in operators and provides the following types of operators.

S.No. Operator Name Operator Symbol
1. Arithmetic Operators
2. Comparison/Relational Operators
>Greater than
<Less than
>=Greater than equals to
<=Less than equals to
!=Not equals to
==Equals to
3. Modulus Operator : It divides the number and return the remainder. Modulus operator will work only with integer values, it will not work with float, double values.
4. Logical Operators
5. Assignment Operator
6. Increment/Decrement Operator
a++Post Increment
++aPre Increment
a--Post Decrement
--aPre Decrement
7. Compound Assignment Operators
+=Add and Assignment
−=Subtract and Assignment
*=Multiply and Assignment
/=Divide and Assignment
%=Modules and Assignment
8. Conditional or Ternary Operator
? :
9. Bitwise Operators
>>Left Shift
<<Right Shift
^Exclusive OR
10 sizeof() operator calculate the size of the data type
Other Operators are:

In C-Language, there are about 45 operators.