When we will compile a c program we may get following error message:
warning: return type of ‘main’ is not ‘int’
Solution:
Cause of this warning message is return type of main function is not int. It is necessary to return an int value by main function. If main function returns 0 then operating system treat it as success.
For example:
int main(){
//Write your c code.
}
No comments:
Post a Comment