The main cause of this error is – missing closing curly brace (}) of the main() block.
prog.c: In function ‘main’:
prog.c:5:2: error: expected declaration or statement at end of input
In this program, closing brace of the main() block is missing
How to fix?
To fix this and such errors, please take care of curly braces, they are properly opened and closed.
total answers (1)
start bookmarking useful questions and collections and save it into your
own study-lists, login now to start creating your own collections.