answersLogoWhite

0

How do you end a program in c?

User Avatar

Anonymous

14y ago
Updated: 8/19/2019

All C programs have a main() function, and when the end of that is reached, the program terminates, so to end a program, just type the ending curly bracket '}' to match the opening one of the main() function.

It is considered good practice to end a program with the statement 'return 0;' before the last curly bracket, to indicate that the program terminated normally.

User Avatar

Wiki User

14y ago

What else can I help you with?