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. adress value of pointer NULL

adress value of pointer NULL

Scheduled Pinned Locked Moved C / C++ / MFC
question
6 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.
  • W Offline
    W Offline
    Willem B
    wrote on last edited by
    #1

    hi, quick question about the pointer NULL. witch adress value does it have? does it happen to be 0xcccccccc? thnx, willem []D [] []D []

    W J 2 Replies Last reply
    0
    • W Willem B

      hi, quick question about the pointer NULL. witch adress value does it have? does it happen to be 0xcccccccc? thnx, willem []D [] []D []

      W Offline
      W Offline
      Willem B
      wrote on last edited by
      #2

      sorry already got the solution, 0xcccccccc is the point adress value of a undefined pointer(standart value). i forgot the define my pointer before getting values from it. dumb dumb:D thnx anyways []D [] []D []

      D 1 Reply Last reply
      0
      • W Willem B

        hi, quick question about the pointer NULL. witch adress value does it have? does it happen to be 0xcccccccc? thnx, willem []D [] []D []

        J Offline
        J Offline
        Joaquin M Lopez Munoz
        wrote on last edited by
        #3

        What do you understand by "address value"? In most compilers, a null pointer, when converted to a number (an int, for instance), yields 0. Strictly speaking, this does not mean that a null pointer point to the address 0x00000000 (the standard marks as undefined conversion from pointers to integral values), although for some purposes you can assume this. Joaquín M López Muñoz Telefónica, Investigación y Desarrollo

        1 Reply Last reply
        0
        • W Willem B

          sorry already got the solution, 0xcccccccc is the point adress value of a undefined pointer(standart value). i forgot the define my pointer before getting values from it. dumb dumb:D thnx anyways []D [] []D []

          D Offline
          D Offline
          David Crow
          wrote on last edited by
          #4

          Willem B wrote: 0xcccccccc is the point adress value of a undefined pointer Actually, 0xCCCCCCCC is a defined value meaning uninitialized pointer. This is done on purpose by the compiler in debug mode so that you'll know when an uninitialized pointer is being referenced.

          W 1 Reply Last reply
          0
          • D David Crow

            Willem B wrote: 0xcccccccc is the point adress value of a undefined pointer Actually, 0xCCCCCCCC is a defined value meaning uninitialized pointer. This is done on purpose by the compiler in debug mode so that you'll know when an uninitialized pointer is being referenced.

            W Offline
            W Offline
            Willem B
            wrote on last edited by
            #5

            why didn't my compiler told me that;) stupid machine:laugh:;P []D [] []D []

            D 1 Reply Last reply
            0
            • W Willem B

              why didn't my compiler told me that;) stupid machine:laugh:;P []D [] []D []

              D Offline
              D Offline
              David Crow
              wrote on last edited by
              #6

              What warning level are you using?

              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