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

Programing Approach


Flow Chart

Define C

Define Programming

C - Syntax

C - Variables

C - Keywords

C - Data Types

C - Comments

Turbo C - Shortcut keys

C - Operators

Hierarchy of Operators

Ex: Arithmetic Operator

Constant Variable

C - Escape Sequence

Control Structure - if

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 - Strings

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


Operators In C

An operator is a symbol that tells the compiler to perform specific mathematical or logical manipulations. C language is rich in built-in operators and provides the following types of operators: There are about 45 operators in C-Language:

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
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

Modulus Operator: It divides the number and return the remainder. Note: Modulus operator will not work with float or double values.

Ternary Operator: Consists of both the question mark and the colon. Condition is a logical expression, if the condition is true than evaluates expression 1 and if the condition is false then evaluates expression 2.

Updated: 14-Feb-2019