Raised This Month: $ Target: $400
 0% 

Code Style


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
issen1
Member
Join Date: Jan 2010
Old 10-17-2010 , 05:20   Re: Code Style
Reply With Quote #10

Quote:
Originally Posted by Exolent[jNr] View Post
That's not what I said.
I said that you can have multiple return statements, but only 1 return value, because obviously the function stops when a value is returned.
To have more than one, you need separate blocks of code made by if(), while(), etc.
So only one return operation is executed just like in the other example. This does not affect the efficiency, but the size of code.
__________________
greets (:
issen1 is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 10:22.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode