[A83] Re: C(++) programming


[Prev][Next][Index][Thread]

[A83] Re: C(++) programming




Actually, there is a way to 'overload' a function so that it can have 
different types to return, have different type and amount of variables passed 
into it, several different things.
an example would be:

void junk(void) {
    //do nothing
}
int junk(int a) {
    return a;
}

now both of these should compile under a gcc compiler, and work fine, so 
varying parameters is legal for any program(as long as you implement it)

i ment it couplies it into machine language in the long run.  

the '_' infront of the function name is what I have seen so far, true it is 
compiler speicifc but most of them do implement it.

after the main function has been called from the initilisation section, it 
destroys some of the stuff that it needs to after that, thats all.