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

C Tutorial

Programing Approach

Algorithm

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

ASCII Value

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

MCQ

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