[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]

Re: [LI] C Programming problem



> 
> As an aside, standard C demands that main should always return an
> int. Your program might crash if you declare main as void main().
> 
> Binand

 Does a C program need to return a value from main? C++ forces it, that's
OK, but so far I have not experienced any problem for main(){}(i.e.
without any return parameters). Do I need those return parameters in a C
program?

 Bye
  Shridhar

--------------------------------------------------------------------
The Linux India Mailing List Archives are now available.  Please search
the archive at http://lists.linux-india.org/ before posting your question
to avoid repetition and save bandwidth.