can anyone can explain detail to me what is the void in function,and give an example how to use it,thanks.
Printable View
can anyone can explain detail to me what is the void in function,and give an example how to use it,thanks.
void literally means nothing
a function declared like this :-
void menu()
is a function that does not return a value.This is called a procedure in other languages...
whereas
int menu(void)
is a function that returns an int but takes no parameters.