Selasa, 18 Desember 2018

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 the CPU if the name of the function is called to be executed, except for the main function


Function in C divided in two types :
Library function
User-defined function

Library function: is a standard function provided by C compiler. Those function described in the header files
Example: strcpy() in string.h
printf() in stdio.h

User-defined function: is self defined functions

Recursive: 
is a function call inside a certain function that call itself.







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...