[ create a new paste ] login | about

Link: http://codepad.org/Xw94NTPq    [ raw code | output | fork ]

godneil - C, pasted on Apr 2:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//Printing the Memory address

# include <stdio.h>

int main(void) {

    int total = 28;
    int *Thanks = &total;
    
    printf("The mem address at total is: %p", *Thanks);

    return 0; 


}


Output:
1
The mem address at total is: 0x1c


Create a new paste based on this one


Comments: