CPP

26
346 reads

February 11, 2013

Insertion Sort


Sorting takes an unordered collection and makes it an ordered one.
The program takes input in an array of 10 elements and passes it to the inst_sort() function to sort it.

25
332 reads

February 11, 2013

Selection Sort


Sorting takes an unordered collection and makes it an ordered one.

23
310 reads

February 11, 2013

Bubble Sort


Sorting takes an unordered collection and makes it an ordered one.

46
1607 reads

February 11, 2013

Array as parameter


At some moment we may need to pass an array to a function as a parameter.

36
1556 reads

February 11, 2013

displaying a single element of an array


This example demonstrates accessing elements of array.

56
1523 reads

February 11, 2013

reading and displaying an array


This program demonstrates how to read and write an array.

26
1645 reads

February 11, 2013

OR operator


This example demonstrates the use of OR operator to see whether a number is divisible by 2 OR 3.

26
1596 reads

February 11, 2013

NOT operator


Here we use the NOT operator to check whether a number is odd or even.

33
1610 reads

February 11, 2013

and operator


This program shows how to use the "AND" operator.

29
307 reads

February 11, 2013

String sort


Sorting is any process of arranging items in some sequence and/or in different sets.