Embed presentation
Downloaded 47 times

![ A collection of homogeneous data items that are stored at
contiguous memory locations.
Syntax of declaring ArrayVariable:-
data_type variable_name [size]
Example:- float s_height[40];
Syntax of accessing array elements:-
variable_name [index]
Example:- s_height[3]=5.4;
sum=sum+s_height[3];](https://image.slidesharecdn.com/cpresentation-171119073413/85/Array-Of-Pointers-2-320.jpg)

![ Array Of Pointers is a linear consecutive sequence of
memory locations each of which represents a pointer.
We can assign pointers as an Array Of Pointer with the
following syntax-
data_type *pointer_name[size]
Example:- int*ptr[10];
Here, ptr refers to an array of 10 pointers.](https://image.slidesharecdn.com/cpresentation-171119073413/85/Array-Of-Pointers-4-320.jpg)



The document discusses arrays, pointers, and arrays of pointers in C programming. It defines an array as a collection of homogeneous data items stored contiguously in memory that is declared using a data type, variable name, and size. It also provides the syntax for declaring and accessing array elements. The document then defines a pointer as a variable that stores the address of another variable and gives the syntax for declaring pointer variables. Finally, it defines an array of pointers as a linear sequence of memory locations that each represent a pointer and shows the syntax for declaring an array of pointers.

![ A collection of homogeneous data items that are stored at
contiguous memory locations.
Syntax of declaring ArrayVariable:-
data_type variable_name [size]
Example:- float s_height[40];
Syntax of accessing array elements:-
variable_name [index]
Example:- s_height[3]=5.4;
sum=sum+s_height[3];](https://image.slidesharecdn.com/cpresentation-171119073413/85/Array-Of-Pointers-2-320.jpg)

![ Array Of Pointers is a linear consecutive sequence of
memory locations each of which represents a pointer.
We can assign pointers as an Array Of Pointer with the
following syntax-
data_type *pointer_name[size]
Example:- int*ptr[10];
Here, ptr refers to an array of 10 pointers.](https://image.slidesharecdn.com/cpresentation-171119073413/85/Array-Of-Pointers-4-320.jpg)

