Please can anybody tell me the difference in return 0 and system ("pause");
osei-akoto
-1
Newbie Poster
Recommended Answers
Jump to PostPlease can anybody tell me the difference in return 0 and system ("pause");
return 0 means the value 0 (usually some type of int) is returned from a function to the caller of the function.
system() is a library function that makes calls to OS commands/programs. system("pause") calls the …
Jump to PostIn case of main function, if i forgot to write return 0; at the last, GCC compiler generates no error
If you rely on the compiler to point out every problem in your code, you will spend more time with the debugger than if you know the problem areas that …
All 8 Replies
yellowSnow
607
Posting Whiz in Training
deepugtm
-8
Junior Poster in Training
osei-akoto
-1
Newbie Poster
yellowSnow
607
Posting Whiz in Training
deepugtm
-8
Junior Poster in Training
mvmalderen
commented:
What the hell are you talking about?
-4
yellowSnow
607
Posting Whiz in Training
deepugtm
-8
Junior Poster in Training
Tom Gunn
1,164
Practically a Master Poster
Salem
commented:
Wise words indeed, there is no safety netting.
+36
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.