null?

This is a discussion on null? within the C++ Programming forums, part of the General Programming Boards category; Okay probably a totally stupid question here that I am going to get booted and maimed for life for, but ...

  1. #1
    Registered User
    Join Date
    May 2002
    Posts
    178

    null?

    Okay probably a totally stupid question here that I am going to get booted and maimed for life for, but I know some but not a lot of c++ i'm not a noob, but nowhere near a pro or anything either. Well, i'm taking the step into windows programming and my book is based a lot on c. A lot of places you have to use NULL i know in c++ it was represented as /0 and i mainly just used it for strings, what exactly is the whole purpose of this NULL as far as c and win32?
    Oi Oi Oi!!!!

  2. #2
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,499
    NULL is a pointer - as described here

    NUL (or nul) is ASCII character zero, written in C as '\0', which is used to mark the ends of strings.

    As for use of NULL as it relates to windows specific programming, then ask on this board

  3. #3
    Registered User
    Join Date
    May 2002
    Posts
    178
    Thanks salem, i'll take a gander through that and see what i come up with.
    Oi Oi Oi!!!!

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Global Variables
    By Taka in forum C Programming
    Replies: 34
    Last Post: 11-02-2007, 03:25 AM
  2. Help with yacc/compiler design/seg fault
    By trippeer in forum C Programming
    Replies: 1
    Last Post: 04-08-2005, 03:43 AM
  3. Wierd Segmentation Faults on Global Variable
    By cbranje in forum C Programming
    Replies: 6
    Last Post: 02-19-2005, 11:25 AM
  4. Big Problem With Passing an Matrix to Main Function
    By Maragato in forum C Programming
    Replies: 4
    Last Post: 06-14-2004, 11:06 PM
  5. Really Need Help With My Opengl Camera!!!!
    By psychopath in forum Game Programming
    Replies: 13
    Last Post: 05-28-2004, 03:05 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21