Jump to content
  • Advertisement


This topic is now archived and is closed to further replies.


Void! Me idjit!

This topic is 5794 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I finally moved on to classes with my C++ programming book, but i guess that the book didn''t fully explain what "void" does! could anyone help me?

Share this post

Link to post
Share on other sites
Void is a kind of non-type used when performing certain typeless operations.

Also, when a function doesn''t return a value, it is said to return void, because it literally returns nothing.

Void pointers can be used when passing data to a nonoverloaded function that needs to accept multiple types of data, as in a file i/o function or network send/recv function. Void pointers can be cast to other types of pointers, and vice versa, but you may not, IIRC, dereference a void pointer.

Corrections welcome.


//email me.//zealouselixir software.//msdn.//n00biez.//
miscellaneous links

Share this post

Link to post
Share on other sites

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!