|
Getting down to the assembler level, ANSI declares that functions will return their values through the eax, ax, or al register, depending on the size of the data. But obviously some functions don't return data. The keywords before the function name tell it how much it will be returning. Void means it's not returning anything, and the contents of eax will be unpredictable. (Though someone earlier said some compilers make void functions return 0, hence eax would contain 0.)
|