Skip to main content

Posts

Featured

Pointers & Arrays

1. POINTER Pointer is a variable whose value is the address of another variable. Syntax: <type> *variable_name; Example: There's also Pointer to Pointer, which has the same concept with pointer to variable. Example: 2. ARRAYS Array is a kind of data structure that can store or save elements with the same data type using the same variable name and can be distinguished by their index. Array Characteristics: Homogenous. All elements have similar data type. Random access. Each element can be reached individually, does not have to be sequential. Array can be thought as boxes. First we need to have the boxes, in other word, we need to declare it first. Then, we can have the boxes as empty or already have things inside it. That is initializing the arrays.We can make different box or a variable to have what inside one of the boxes have, which is accessing array elements. And lastly, we can change what is inside the boxes by assigning values. Note: The...

Latest Posts

Repetition