Minggu, 18 Oktober 2015

Arrays in C

Hello readers!

i want to show you about Arrays in C.

Arrays

  • Group of element that has the same data
  • Rows and Columns
  • Has the same name and the same element
Kinds of array:

  • Single Array 


  • Multidimentional Array (more than one dimention)



That's the Arrays in C. Hope this will help you. Thanks! :D

nb: You can find it more from this link: http://www.tutorialspoint.com/cprogramming/c_arrays.htm





            

Sabtu, 17 Oktober 2015

How Recursion Works in C

Hello readers!

i want to show you about How Recursion Works in C.

Recursion:

  • Function that calls itself as recursive function
  • Process of repeating the items in a similar way

Advantage and Disadvantage of Recursion:

Advantage: More elegant and makes some problem to be one problem
Disadvantage: Hard to find the logic


I will give you an example (you can see the pict):


That's the How Recursion Works in C. Hope this will help you. Thanks! :D

nb: for source/additional knowledge: 
  • http://www.programiz.com/c-programming/c-recursion
  • http://www.tutorialspoint.com/cprogramming/c_recursion.htm
  • http://www.cprogramming.com/tutorial/c/lesson16.html







Jumat, 16 Oktober 2015

Function, Arguments/Parameter in C

Hello readers!

i want to show you about Function and Arguments/Parameter in C.

Function: a code for do some task and the codes will be run if the name is called.

Benefits of a Function:

  • More efficient
  • More flexible
  • Makes the code more simple
Without function, the codes for some task must be written repeatedly if it needed. So, it will not efficient.

I will give you an example (you can see the pict):




Parameter: to give the input for the function.

That's the Function, Arguments/Parameter in C. Hope this will help you. Thanks! :D

Sabtu, 03 Oktober 2015

Tutorial on Looping/Iteration in C

Hello readers!

I want to show you the tutorial on looping/iteration in C. Because i am a newbie programmer, i usually use:

  • for
  • while
  • do-while 

 

1. for



2. while




3. do-while






That's the tutorial of looping/iteration with for, while, and do-while. Hope this will help you. Thank's! :D

Jumat, 02 Oktober 2015

Tutorial on Decision/Branch in C

Hello readers!

I want to show you the tutorial on decision/branch in C. Because i am a newbie programmer, i usually use:

  •  if-else
  • switch-case


1. if-else




2. switch-case




That's the tutorial of decision/branch with if-else and switch-case. Hope this will help you. Thank's! :D