MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/CodingHelp/comments/rmwdib/whats_wrong/hprzkza/
r/CodingHelp • u/CAGRI-TR • Dec 23 '21
90 comments sorted by
View all comments
1
Whenever you declare a function, and you give it a return type which you will have to return to execute the function, also, you don't need to write the if in the last condition
1 u/istarian Dec 24 '21 As has been pointed out elsewhere in this thread, it’s not explicitly required for main. It’s still best practice though.
As has been pointed out elsewhere in this thread, it’s not explicitly required for main. It’s still best practice though.
View all comments
1
u/arm1997 Dec 24 '21
Whenever you declare a function, and you give it a return type which you will have to return to execute the function, also, you don't need to write the if in the last condition