0

why it's "return (result)"?

why it's "return (result)", not "return result"? the class before used "return result", not "return (result)". is there any different between these two forms?

23rd Jun 2017, 5:17 PM
wandouyihao01
wandouyihao01 - avatar
2 Réponses
+ 2
You can use whichever you want... the one which you understand easier.
23rd Jun 2017, 6:39 PM
Tim Thuma
Tim Thuma - avatar
+ 1
return (result); and return result; are the same
23rd Jun 2017, 5:21 PM
Elie Douaihy
Elie Douaihy - avatar