5th Algo Class
Pointers & Arrays A pointer is a variable that stores the address of another variable rather than a value. To assign a pointer you just have to add an asterisk […]
Pointers & Arrays
A pointer is a variable that stores the address of another variable rather than a value. To assign a pointer you just have to add an asterisk (*) in front of the variable name. To assign the pointer to another variable’s address then you just have to type in “pointer_var = &var”.
Pointer to Pointer is a variable that stores the address of another pointer by adding an extra asterisk in front of the variable you intend to be a Pointer to Pointer (e.g: **pointer). The input value will be redirected to the address of the Pointer which will again be redirected to the address of a variable.
Array is multiple data saved in a certain structure that can be accessed as a group of individually. An Array is Homogeneous, meaning that the data are similar in type, and is Random Access, meaning that each element can be reached individually. The definition of Array consists of 4 components:
The index of an Array starts from 0, so if say you set the Dimensional value as 3 then it will be: A[0] A[1] A[2]
An array can be made in a multi-dimensional structure (e.g: 1D, 2D, 3D, etc.)
And then something about string, but I fell asleep ’cause I was up all night doing homework xD
Pointers & Arrays A pointer is a variable that stores the address of another variable rather than a value. To assign a pointer you just have to add an asterisk […]
Repetition An operation that is used to repeat one or more instructions until the condition to stop applies. The number of repetition can also be predefined by an amount or […]
Selection An instruction with pre-determined conditions. Depending on the conditions and the type of selection is being used, this may be used for looping. If(-Else): is given a condition and […]
Operator, Operand and Arithmetic Operator: a symbol used to process values for a new one. (the operations) Operand: specifies which data will be operated on. (the values) Operator types: Assignment […]
The first algo class was pretty much an introduction to algorithm, most of what was presented was already given during Academic Orientation. I didn’t really write down any notes because […]
So HIMTI was holding an event by the name of HTTP (Himti Togetherness and Top Performance) and I decided “eh, why not, not like it’s gonna hurt me,” so there […]
In Academic Orientation I learned the basics of algorithm and the basics of programming using C++, and I was also introduced to what I’ll be facing within the major. When you join Game Application and […]
There are many organizations in BINUS Univ. they’re all unique in their own ways, all kinds of clubs and communities exist, from sports to education to martial arts and much […]
General Orientation… aah, first day in BINUS.. we were gathered up in a room and socialized about General Orientation. I didn’t make new friends in the first day, as I […]