Search:

Type: Posts; User: patch1024

Search: Search took 0.00 seconds.

  1. Replies
    14
    Views
    5,270

    Thanks for the replies. :confused: I am still...

    Thanks for the replies.

    :confused: I am still confused. &a just returns a simple number (which happens to be a memory address) right, so why can't I assign that number to an ordinary integer...
  2. Replies
    14
    Views
    5,270

    Initialising pointers

    Hi, My question is this:

    The code

    int a=0;
    printf("%p", &a);

    shows on the screen the memory address of variable a, so why can't I assign this value to another variable -

    int a=0;
Results 1 to 2 of 2