Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

NULL undeclared

  1. Oct 21, 2005 #1
    Hi, I'm just learning how to program in C. When I try to compile my program, I get errors saying that NULL is undeclared. I didn't think I had to declare it...
    So anyway, can anyone tell me how I go about declaring it? Thanks.
  2. jcsd
  3. Oct 21, 2005 #2


    User Avatar
    Staff Emeritus

    NULL is declared in stdio.h
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook