Lunarpages Web Hosting Forum

Author Topic: NULL pointer and a void pointer?  (Read 10389 times)

Offline android45

  • Spaceship Captain
  • *****
  • Posts: 110
NULL pointer and a void pointer?
« on: November 02, 2012, 01:53:27 AM »
I would like to know what is the difference between a NULL pointer and a void pointer? Thanks in advance.

Offline MrPhil

  • Senior Moderator
  • Berserker Poster
  • *****
  • Posts: 6421
Re: NULL pointer and a void pointer?
« Reply #1 on: November 02, 2012, 05:32:34 AM »
Any specific language? It may vary among languages.

Void is a type, meaning "it's just pointing to generic data, not to a specific data type". NULL is a value of (usually) 0 assigned to the pointer. It's normally invalid as an address, so it can be caught by the hardware.
Visit My Site

E-mail Me
-= From the ashes shall rise a sooty tern =-

Offline Pete

  • Alien Anomaly
  • Senior Moderator
  • Professor in Nanotechnology
  • *****
  • Posts: 4246
    • X-Visions Website Design
Re: NULL pointer and a void pointer?
« Reply #2 on: November 05, 2012, 04:57:13 AM »
A bit scary when a "Mobile Application Development" company post on a forum asking about technical issues.
I know your only posting to get backlinks but..............I would not want to let your company to do any work for me as it looks like you dont know what your doing  !!!!
x-visions.com


As I'm always saying.. (But nobody listens)
"Take a step back.. Take a deep breath and see if there a simple solution there, thats hiding" lol  :DLunarpages Web Hosting   Lunarpages Forums  Lunarpages Affiliate Program

Offline MrPhil

  • Senior Moderator
  • Berserker Poster
  • *****
  • Posts: 6421
Re: NULL pointer and a void pointer?
« Reply #3 on: November 05, 2012, 06:40:22 AM »
Yeah, he must be either a spammer generating backlinks for his business, or a college kid having us do his homework for us. Either way, if you find it annoying enough, @Pete, go ahead and ban him.
Visit My Site

E-mail Me
-= From the ashes shall rise a sooty tern =-