Selasa, 18 Desember 2018

Materi: Pointers and Arrays

POINTERS AND ARRAYS


Pada materi ini saya mempelajari tentang Pointers dan 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

Materi: Function dan Recursion(Recursive)

FUNCTION AND RECURSION(RECURSIVE) Function:  is a structure, grouping that contains a group of statements that will be carried out by t...