--- ali murtaza <[EMAIL PROTECTED]> wrote:

> Dear
>    
>   The perpose of Include is mean to Include the
> differents files of pre define functions......e.g.
> stdio.h , conio.h ,string.h  etc..
>   and main is a function whose return type is a
> integer ...so yopu return 0 at the end of main....
>    
>   
> 
> gIe - papilon <[EMAIL PROTECTED]> wrote:
>           i started to learn C programming..
> 
> i had some question
> 
> example :
> 
> #include<stdio.h> /* what the function of
> #include?*/
> 
> int main() /* what's int main() purpose? */
> {
> printf('gf');
> return 0; /* why must be return 0 ? not return 1 or
> x */
> }
> 
> thanks for your answer..
> 
> 
> Ali Murtaza             
>        
The return 0; returns the 0 to the operating system or
if the program was called from another the value is
returned to the calling program.  The 0 says that the
program ran successfully.  Any non-zero value implies
that there was an error.  The calling program or
operating system can use this value.  In the days of
DOS batch files, we checked to make sure a program ran
successfully, before executing another program in a
series.  Similar for *NIX script files.

Ray 


       
____________________________________________________________________________________Ready
 for the edge of your seat? 
Check out tonight's top picks on Yahoo! TV. 
http://tv.yahoo.com/

Reply via email to