can anyone can explain detail to me what is the void in function,and give an example how to use it,thanks.
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.
Free the weed!! Class B to class C is not good enough!!
And the FAQ is here :- http://faq.cprogramming.com/cgi-bin/smartfaq.cgi