A quick question

I have a pointer initilized to zero. Now I want it to hold the address below. How would I do that?

0x0066fffc
The address

Comments

  • : I have a pointer initilized to zero. Now I want it to hold the address below. How would I do that?
    :
    : 0x0066fffc
    : The address
    :

    pointer=(int*)0x66fffc;

  • Use reinterpret_cast operator.


Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories