Results 1 to 4 of 4
  1. #1
    Senior Member RaiZo's Avatar
    Join Date
    Nov 2009
    Location
    France
    Posts
    449

    The nickname of x22 is related to the adress of a variable ?

    I'm learning C++, and I just realized that the beginning of the address of a variable begins with "x22" is related to the nickname of x22 ?

  2. #2

    Re: The nickname of x22 is related to the adress of a variable ?

    wut do you mean actually?

  3. #3
    Coders
    Join Date
    Nov 2009
    Location
    Belgium
    Posts
    990

    Re: The nickname of x22 is related to the adress of a variable ?

    I guess you mean something like "0x".
    It is a prefix for numeric constants represented in hexadecimal number format.

    This is just a number presented. There is no prefix 'x' which represents a number.

    Code:
    int a = 0x22; // represents a hexadecimal number format.
    int b = 0198; // represents an octal number format.
    int c = 5; // represents a number with base 10 (the most common one).
    So (22)b:16 = (34)b:10 = (100010)b:2.

    b:2 = binairy number format.
    b:8 = octal number format.
    b:16 = hexadecimal number format.

    Since you're learning, an address is not the same as a variable. Altough, when an object gets set on the heap, an address will point to it.
    Local vars will be pushed on the stack.

    Regards.

  4. #4
    Senior Member RaiZo's Avatar
    Join Date
    Nov 2009
    Location
    France
    Posts
    449

    Re: The nickname of x22 is related to the adress of a variable ?

    Thanks King-Orgy and mOwl to reply, yes sorry, I was wrong, it wasn't adress but hexadecimal sorry ^^ (Attachment 2881)
    Attached Images Attached Images

Similar Threads

  1. TUTORIAL: How to change your IP adress.
    By straatlantaarnpaal in forum BattleField Heroes Cheats
    Replies: 7
    Last Post: April 9th, 2010, 14:20
  2. [Tutorial] Variable Arrays
    By FreckleS in forum Visual Basic
    Replies: 3
    Last Post: January 19th, 2009, 11:36
  3. Help to find the adress of func CG_SpawnSmokeSprite in etpro...
    By duzao7667 in forum Basehooks / Sources
    Replies: 2
    Last Post: June 25th, 2008, 04:56
  4. How to colour your nickname
    By shawnthedon in forum Enemy Territory Cheats
    Replies: 5
    Last Post: April 6th, 2007, 22:02
  5. ET distance variable?
    By Kozical in forum Client Hooks
    Replies: 18
    Last Post: April 5th, 2007, 18:26

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •