#if 0

This is a discussion on #if 0 within the C Programming forums, part of the General Programming Boards category; hello, plz help me. i have a code #if 0 blah blah blah #endif in the middle of the program ...

  1. #1
    Registered User
    Join Date
    Sep 2005
    Posts
    21

    Smile #if 0

    hello,

    plz help me.

    i have a code

    #if 0
    blah blah blah
    #endif


    in the middle of the program

    what does this mean

  2. #2
    Even death may die... Dante Shamest's Avatar
    Join Date
    Apr 2003
    Location
    Malaysia
    Posts
    970
    It means the code between #if 0 and #endif is never compiled.
    It's usually used to quickly exclude code from being compiled. Some people find them more convenient then using /**/ comments, which won't comment other nested /**/.

  3. #3
    Registered User
    Join Date
    Sep 2005
    Posts
    21
    thanq so much......

Popular pages Recent additions subscribe to a feed

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