Hey im new to this C++ business but i just wanted to know cause i find lots or errors coming up to me :'( .. whats the difference between int main and void main.
karimnouh 0 Newbie Poster
Recommended Answers
Jump to PostIf you don't return a value to the operating system, then whatever happens to be in EAX at the time will probably be returned and this may cause undesirable results. That is why void main () is a definite NO NO!
Jump to PostI don't know. But most here will tell you to never use void main()
They'll probably tell you to never use goto as well, but that doesn't mean you should just listen to them. Find out why, and then do what is best; and yes, the popular opinion can be …
Jump to PostThey'll probably tell you to never use goto as well, but that doesn't mean you should just listen to them. Find out why, and then do what is best; and yes, the popular opinion can be wrong sometimes..
Most, if not all, professional programmers refuse to use the goto statement, …
All 11 Replies
Boldgamer 1 Light Poster
Tight_Coder_Ex 17 Posting Whiz in Training
SpS 34 Posting Pro
Infarction 503 Posting Virtuoso
karimnouh 0 Newbie Poster
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster
vijayan121 1,152 Posting Virtuoso
Infarction 503 Posting Virtuoso
Bench 212 Posting Pro
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster
Infarction 503 Posting Virtuoso
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.