Sign in to follow this  
Pickleninja

Return(ret==0) ??

Recommended Posts

I'm looking at a piece of code and it contains a return statement: Return(ret==0) It's written in C++, but for the life of me I can't remember ever seeing a return statement that looks like this. Does it mean "Return ret if ret is equal to 0"? -Pickle Edit: Just found the answer...thanks, and sorry...I should have looked a little bit harder before posting :(

Share this post


Link to post
Share on other sites
If the value of ret is 0 then the return value is true. Otherwise the return value is false.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this