Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. i hope this question can be asked here

i hope this question can be asked here

Scheduled Pinned Locked Moved C / C++ / MFC
question
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    kalaveer
    wrote on last edited by
    #1

    Can u pls tell me what happens if we ignore the token name in the macro ex: #define dfg Thanks in advance.

    D C 2 Replies Last reply
    0
    • K kalaveer

      Can u pls tell me what happens if we ignore the token name in the macro ex: #define dfg Thanks in advance.

      D Offline
      D Offline
      Don Box
      wrote on last edited by
      #2

      Here, what the Token name means???

      Come online at:- jubinc@skype

      1 Reply Last reply
      0
      • K kalaveer

        Can u pls tell me what happens if we ignore the token name in the macro ex: #define dfg Thanks in advance.

        C Offline
        C Offline
        Christian Graus
        wrote on last edited by
        #3

        It means that you've created a definition without a value.  This would be used, for example, as a check if a piece of code has been compiled before, the common example is inclusion guards like #ifndef blah #define blah class blah { } #endif This will compile blah the first time, and the #ifndef will fail every other time, as blah has been #defined

        Christian Graus - C++ MVP 'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups