Thread: #if 0

  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
    Registered User Dante Shamest's Avatar
    Join Date
    Apr 2003
    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