Welcome to Dream.In.Code
Getting C++ Help is Easy!

Join 136,104 C++ Programmers for FREE! Get instant access to thousands of C++ experts, tutorials, code snippets, and more! There are 1,695 people online right now. Registration is fast and FREE... Join Now!




NULL

 
Reply to this topicStart new topic

NULL, NULL

s2pid_one
15 Oct, 2007 - 06:20 AM
Post #1

New D.I.C Head
*

Joined: 15 Oct, 2007
Posts: 1


My Contributions

can anybody explain to me nicely wat is a NULL and wats d use of it,, please..

thanks...... smile.gif
User is offlineProfile CardPM
+Quote Post

no2pencil
RE: NULL
15 Oct, 2007 - 06:21 AM
Post #2

My fridge be runnin OH NOEZ!
Group Icon

Joined: 10 May, 2007
Posts: 6,441



Thanked: 64 times
Dream Kudos: 2425
Expert In: Goofing Off

My Contributions
Null is the absence of a value. It isn't zero, zero is a value.
User is online!Profile CardPM
+Quote Post

NickDMax
RE: NULL
15 Oct, 2007 - 12:13 PM
Post #3

2B||!2B
Group Icon

Joined: 18 Feb, 2007
Posts: 2,858



Thanked: 49 times
Dream Kudos: 550
My Contributions
Well... null does mean "non-value". Generally with C we mean a null pointer. a null pointer is one that does not point to a valid location (well it really means "points to no location" as there are lots of pointers that point to invalid locations that are not null).

A null pointer generally points to address 0 or 0:0 in segmented memory.

null is often used to mean "Not initialized" (though you should NEVER assume that your compiler nulls out uninitialized pointer values).

User is offlineProfile CardPM
+Quote Post

Reply to this topicStart new topic
Time is now: 12/1/08 09:07PM

Live C++ Help!

C++ Tutorials

Reference Sheets

C++ Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month