mikeburdett
MIS
What is the advantage to using void in void main ()
instead of using say; int main (void) or float main (void)
or double main (void)?
I understand that void is not needed in the parenthesis since it is assumed by the compiler, but why would you use
one to start other than that your program may be using alot of integers, floating, or double precision but just
how do you know which one to use when or if it's even neccessary to use them?
can you just say: Main (void) and be done with it that way?
instead of using say; int main (void) or float main (void)
or double main (void)?
I understand that void is not needed in the parenthesis since it is assumed by the compiler, but why would you use
one to start other than that your program may be using alot of integers, floating, or double precision but just
how do you know which one to use when or if it's even neccessary to use them?
can you just say: Main (void) and be done with it that way?