Im still a newb when it comes to programming so im just curious, i understand as far to where return(0); at the end of a function tells the program their were no errors and to end the program right? But what else can you use return(???); for? And how exactly does it effect your code? Im going to do some searching on wiki right now. Thanks.
clutchkiller
3
Junior Poster
Recommended Answers
Jump to PostThe return statement, with a value, simply returns that value to the caller from the current function.
In the case of your main( ) function, this is "called" by the operating system, and main( ) returns a value to the OS upon completion. By convention, return value 0 indicates …
All 4 Replies
vmanes
1,165
Posting Virtuoso
clutchkiller
3
Junior Poster
clutchkiller
3
Junior Poster
vmanes
1,165
Posting Virtuoso
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.