• Post Reply Bookmark Topic Watch Topic
  • New Topic

Return statement  RSS feed

 
Roberto Favaro
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is this piece of code

the same as this

or have I mixed up the true and false.
Thanks in advance....
 
Henry Wong
author
Sheriff
Posts: 23283
125
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yup... both methods are equivalent. But how about this instead?



Henry
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!