KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
If I have a function that performs some procedure and then needs to return the truth value of something, is there a compelling reason to use int or bool as the return type? bool Foo() { // ... } // vs. int Foo() { // ... } Is there an appreciable difference between these two functions? What are some potential pitfalls and advantages to both of them?
Tags (comma-separated)
Save Edits
Cancel