Feb 11, 2007 02:43
I just finished my mid-terms and I thought I would throw this out there. How would you answer this true/false question?
The word int before main () tells the C++ compiler that main produces numbers.
I'm just curious how other programmers might answer this.
geek
Leave a comment
Comments 5
Reply
Prof's response:
"The word int before main () tells the C++ compiler that main produces integers. Using the term "numbers" is incorrect because there are different types of numbers that are treated differently."
My thinking was that an integer is a number, it isn't a double, or floating number, but it will always be a number. int main() will never return anything but a number.
But I could be completely wrong.
Reply
Reply
:)
Reply
Reply
Leave a comment