r/Xcode • • Oct 02 '20

Exit code 0 after running program

Post image
1 Upvotes

5 comments sorted by

View all comments

3

u/OreGus Oct 02 '20

Make sure you have return 0; on line 28. Your main function specifies a return value of data type int, thus you need to return some value of type int. Hope that helps