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

Programing Approach

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

Control Structure

Control Structure - if

Ex: If condition

Ex: Inc / Dec Operator

C - loops

Ex: Loops

C - Nesting Of loops

Ex: Nested Loops

Constant Variable

C - Escape Sequence

C - Arrays 1D, 2D

C - Sorting


Character I/O Function

C - Strings

Ex: Strings

Array of Strings

C - Math Functions

C - Functions

C - Types of Functions

Storage Class

C - Header Files

C - Preprocessor

C - Pointers

C - Structures

Typedef File Handling

Command Line Argument


Sorting in C

Sorting is technique which is used to arrange the data in a particular order, either ascending or descending order. In C-Language there are 3 types of sorting techniques availabe i.e. Bubble Sort, Selection Sort, Insertion Sort.

Bubble Sort

1. Bubble Sort - It starts comparing numbers from starting till end of the list and place a largest number in the end in the 1st pass.

Bubble Sort

Solution: Bubble Sort

Selection Sort

2. Selection Sort - It starts comparing numbers from top and place a smallest number in starting in 1st pass.

Selection Sort

Solution: Selection Sort

Insertion Sort

3. Insertion Sort- It start comparing numbers from 1st index to top of the list and insert the number at its sorted position.

Insertion Sort

Solution: Insertion Sort

Updated: 31-Oct-18