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


Arrays 1D

Arrays are the collection of variables of similar data type. For example an int array holds the elements of int types while a float array holds the elements of float types. All arrays consist of contiguous memory locations.

To declare an array, specify a variable name with its data type and the number of elements in square brackets, like int Numbers [10].
Array index is started from 0 and there is no limit of maximum value.

Exercise Questions on Arrays:

  1. Find maximum and minimum number in an array
  2. Input 10 number and find sum and average.
  3. WAP to find sum of odd numbers, even numbers
  4. Merge 2 arrays in a sorted order
  5. Reverse the array list
  6. Merge 2 arrays uniquely
  7. Insert, delete an element in an array
  8. WAP that splits an array into odd and even numbers.
  9. Input 10 numbers in array and find sum of odd and even numbers separately.
  10. Find factorial of each number stored in array

Double-Dimensional Arrays or 2d-Arrays

The 2-dimensional arrays are the combination of rows and columns. A 2D array is use to represent matrix.
2D Arrays
Exercise Question on 2D-Matrix:

  1. Input two 3x3 matrix and add them.
  2. Input two 3x3 matrix and multiple them
  3. Input 3x3 matrix and transpose it
  4. Input 3x3 matrix and find sum of all rows, columns and diagonals
  5. Find whether the input matrix is symmetric or not
  6. Find the upper and lower triangular matrices