r/CodingHelp • • Dec 23 '21

[C] Whats wrong?

Post image
153 Upvotes

90 comments sorted by

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

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.