ubuntuforums-unanswered team mailing list archive
-
ubuntuforums-unanswered team
-
Mailing list archive
-
Message #11203
Re: [Question #79175]: getting error while compiling c programs
Question #79175 on Ubuntu changed:
https://answers.launchpad.net/ubuntu/+question/79175
Status: Open => Answered
actionparsnip proposed the following answer:
your main line is incorrect
you have missed the arguments from main
instead of
int main
change it to
int main (void)
incidentally, if you use
void main (void)
you dont need the pointless
return 0
at the bottom
--
You received this question notification because you are a member of UF
Unanswered Posts Team, which is an answer contact for Ubuntu.