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

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

ASCII Value

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

MCQ

C - 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.
Updated: 15-Mar-19