what does NULL mean

The Partridge Family were neither partridges nor a family. Discuss.
Post Reply
kacper130320
Posts: 50
Joined: May 19th, 2012, 3:00 pm

what does NULL mean

Post by kacper130320 » June 27th, 2012, 9:34 pm

In the tutorials chili soletimes declares a variable as NULL and I'm not sure what it means. Can you tell me so I will understand the tutorials better.

User avatar
LuX
Posts: 1492
Joined: April 22nd, 2012, 12:33 pm
Location: Finland

Re: what does NULL mean

Post by LuX » June 27th, 2012, 9:50 pm

NULL == 0, 0 == NULL

You can replace each NULL with 0 if you like. If I remember correctly that's just stuck with some programmers from "C" where you had to use NULL in some cases or your code would not run.

But to be sure, keep the NULL's where they are.
ʕ •ᴥ•ʔ

ghilllie
Posts: 72
Joined: May 2nd, 2012, 3:25 am

Re: what does NULL mean

Post by ghilllie » June 28th, 2012, 9:54 am

other leteral meaning of NULL

NULL = just forget it.
NULL = whatever you are just keep quiet at sides.
NULL = Just don't do anything.
NULL = Just nothing.
NULL = Just skip me, I've got nothing to do with anything.
NULL = Just leave me alone, I am assigned for nothingness.

whatever more that is meant for NO VALUE.
Chili++ for President :)

User avatar
chili
Site Admin
Posts: 3948
Joined: December 31st, 2011, 4:53 pm
Location: Japan
Contact:

Re: what does NULL mean

Post by chili » June 28th, 2012, 1:29 pm

Null means invalid, and it is used for pointers and sometimes for handles too. It is more descriptive than simply '0', but its value is the same.
Chili

Post Reply