Tuesday, October 23, 2018

Pointer & Array

Pointer

Pointer is a variable that is used to store the address of another variable that has value. Pointer also have two operators which is (*) and (&).
Note =
1: Variable a is given the value of 99;
2: Ptr variable have the address of variable a, that means the value 99 is stored at memory address;
3:Variable b has the value of ptr variable, that means data or value of ptr variable is stored at variable b;


Array


An array is a collection of data items, all of the same type, accessed using a common name. A one-dimensional array is like a list  a two dimensional array is like a table.  The C language places no limits on the number of dimensions in an array, though specific implementations may. Some texts refer to one-dimensional arrays as vectors, two-dimensional arrays as matrices, and use the general term arrays when the number of dimensions is unspecified or unimportant.


Thursday, October 11, 2018

Repetition

So what is a repetition ? 

Repetition means repeating a sequence of of instructions a certain number of times or until some specific result is achieved.

There are 3 repitition/looping in operation:
1.For
2.While
3.Do while

FOR :

To do a For loop you need to add 3 things :-an inilization  -a conditional  -an increment or decrement.

An inilization is used to inilize the program . The conditional is to put a condition of how the program is run and the increment/decrement is  to tell which way the program looping.


WHILE:

Now  I don't really know much about while so I'll just put one of the formula for this one.
So I think this one is to looping until it hit the conditional (<=10)

DO WHILE:

Do while is the kind of looping where it will keep looping until the conditional is true

So,I'll just give the formula





Well.....I think that's all for now . I hope this will help. Please tell me if I did something wrong here in the comment okay :D









So It's Basically My First Post

So, uhmmm ....I probably need to introduce my self . Hello my name is Arrizki Ramadhan :D. I'm a kinda awkward 18 years old boy who live in Indonesia.I'm kinda fat now and will try lose my weight :D (FIGHT ON!!!) . So basically I make this blog to fullfill my algorithm task , but i'll use it too later in the near future . So I think that's all for now :).