Hi me again, I have a rather puzzling questonsthat none of my books help me with..
take this code: this is not my code i am working on its an examole to explain better!
Ok, I know you cannot return 0 to a voided function, but why does my compiler allow me to just put return with no number after it? Is it old C type synax? I am also unaware if it will have any cascading effects on the rest of my program.,,,,,Code:#include <iostream> using namespace std; void IamAfunction(); int main() { IamAfunction(); return 0; } void IamAfunction() { // code here // return; }
any help would be appreiciated thanks!



LinkBack URL
About LinkBacks


