Saturday 31 August 2013

ARRAYS | C Programming Language Tutorial pdf



ARRAYS

=> The fundamental data types, namely char, int, float, double are used to store only one value at any given time.
=> Hence these fundamental data types can handle limited amounts of data.
=> In some cases we need to handle large volume of data in terms of reading, processing and printing.
=> To process such large amounts of data, we need a powerful data type that would facilitate efficient storing, accessing and manipulation of data items.
=> 'C' supports a derived data type known as array that can be used for such applications.

Arrays:
=> An array is a fixed size sequenced collection of elements of the same data type.
=> It is simply grouping of like type data such as list of numbers, list of names etc.

Some examples where arrays can be used are:
1) List of temperatures recorded every hour in a day, or a month, or a year.
2) List of employees in an organization.
3) List of products and their cost sold by a store.
4) Test scores of a class of students
5) List of customers and their telephone numbers.

Array:
An array is collection of same data type elements in a single entity.
Or
An array is collection of homogeneous elements in a single variable.
=> It allocates sequential memory locations.
=> Individual values are called as elements.

0 comments:

Post a Comment

 

C Programming Language Interview Questions and Answers Tutorial for beginners. Copyright 2013 All Rights Reserved