POINTERS AND ARRAYS
Pointers:
Pointer is a variable that store the address of another variable
Syntax :
<type> *ptr_name;
Two operators mostly used in pointer : * (content of) and & (address of)
Example:
Initialize an integer pointer into a data variable:
int d, *ptr;
ptr = &d;
Arrays:
Data saved in a certain structure to be accessed as a group or individually. Some variables saved using the same name distinguish by their index.
Array characteristics:
- Homogenous
- Random Access
Tidak ada komentar:
Posting Komentar