Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > C - C++ Learning > What is the pur...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 4 Topic 4199 of 4307
Post > Topic >>

What is the purpose of void return?

by BrightColoredCandy <backrub05@[EMAIL PROTECTED] > Jul 10, 2008 at 03:46 PM

I'm a beginner and just learning C++ and I'm a bit puzzled.  I
understand the literal meaning of void return is to return nothing but
I don't understand the purpose by when a main function or a calling
function calls a function when the return type of the called function
returns void type.  Why would you call it in the first place if it
adds no value to the main function?  I thought the whole idea when you
call a function is to have a value returned to the main function or
calling function.  But if the return value is void it's as if there is
literally no function to the called function.  What am I missing
because the books I've been looking at don't explain this.  Can
somebody give me an example of why void return is used?
 




 4 Posts in Topic:
What is the purpose of void return?
BrightColoredCandy <ba  2008-07-10 15:46:21 
Re: What is the purpose of void return?
"osmium" <r1  2008-07-10 16:20:33 
Re: What is the purpose of void return?
Barry Schwarz <schwarz  2008-07-10 18:32:08 
Re: What is the purpose of void return?
"Herbert Rosenau&quo  2008-07-14 08:12:57 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Wed Oct 15 19:26:55 CDT 2008.