Posts

Elementary data structure.

Image
  What is abstract data types? An abstract data type allows us to group native built-in data types into a compound type whose instances can be individually referenced. The data contained in each instance and the operations on that data are independent of all other instances. Abstract data types are the foundation for understanding and applying specific data types, native or user-defined. They also form the foundation for structured and object-oriented programming. Ultimately, these lead to parallel and distributed processing.   What is array? An array is a series of elements of the same serial abstract data type placed in contiguous memory. An entire array is declared all at once. Each individual element in the array can be referenced by indexing. Indexed means the array elements are numbered and always start at 0. You can also declare an array in the following way :   #define ROLL_NUMBERS 51 int classv[ROLL_NUMBERS];   const int Emp_salary = 35 float Em