![]() |
| ||
| simple program problem - need help Hello., Im learning C online, and one of the examples from the internet is this: #include <stdio.h> but when im trying to compile it sais ch5m.c: In function ‘main’: ch5m.c:9: warning: return type of ‘main’ is not ‘int’ is there an error in the exesize? Thanx! |
| ||
| Re: simple program problem - need help Some C compiler will give you a warning when your main function does not return an integer. In this case, do the following changes to the main function: int main() |
| ||
| Re: simple program problem - need help you can also use the above statement as void main() { ........ ....... ..... getch(); } since in using the void function you need have to use return anything. |
| All times are GMT -4. The time now is 9:29 am. |
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC