|
-
April 29th, 2002, 06:57 PM
#10
Member
c/c++/c# site : www.cprogramming.com
souleman:
yes it works perfectly
but int main() should be prefered over void main() coz it will return a value back to the OS/parent program from where it was called. this indicates wether it was successful or not according to the return value.
void() is normally used for functions. though in small/basic programs there is no harm in using void main()
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
|