Difference Between Array of Pointer and Pointer to of an Array in C
Array of Pointer V/S Pointer to an Array :
Array of Pointer | Pointer to an Array |
1 . Declaration : data_type * array_name [SIZE]; | 1 . Declaration : data_type (*array_name)[SIZE]; |
2 . Size represents the number of rows. | 2 . Size represents the number of columns. |
3 . The space for column may be allotted. | 3 . The space for rows may be dynamically allotted. |
Subscribe to:
Post Comments
(
Atom
)
No comments :
Post a Comment