Hi 
Main function by default return value is integer only.

main() method will return a value to the OS. That value, if 0, is considered 
"success" otherwise it is considered "failure". 
So if you want to indicate success or failure, you want to define the return 
type as int and then return something accordingly. 
If you leave the void out, you don't know what will get returnedthe proper 
signature is:
int main() - if you're ignoring command line arguments
 
 
Thanx
Suresh.D

--- On Tue, 7/4/09, roshni anju <[email protected]> wrote:


From: roshni anju <[email protected]>
Subject: [c-prog] C language
To: [email protected]
Date: Tuesday, 7 April, 2009, 8:54 AM






hello
 
 
 Is there anyone who can plz tell me What does Main() function return  by 
default in 'C' Language.
 
 
 
 
Thanx
Roshni

Add more friends to your messenger and enjoy! Go to http://messenger. 
yahoo.com/ invite/

[Non-text portions of this message have been removed]

















      Connect with friends all over the world. Get Yahoo! India Messenger at 
http://in.messenger.yahoo.com/?wm=n/

[Non-text portions of this message have been removed]

Reply via email to