?
Competitive Exams
Aptitude
English
Verbal Reasoning
Non Verbal Reasoning
General Knowledge(GK)
General Science(GS)
Data Interpretation(DI)
Banking Awareness
Current Affairs
Computer & Programming
Computer Fundamentals
Networking
SQL
Database
C Programming
C++ Programming
Java
Python
Other Subjects
Commerce
Management
Law
Political Science
Psychology
Agriculture
Join the Discussion
Login to post a comment or share your explanation.
LoginIn C and C++ programs the main function is of type int and therefore it should return an integer value. The return value of the main function is considered the "Exit Status" of the application. On most operating systems returning 0 is a success status like saying "The program worked fine"