[ create a new paste ] login | about

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

C, pasted on Feb 26:
1
2
3
4
5
6
7
8
9
10
11
12
#include <stdio.h>

int main(void) {
   int total =50;
   int *my_pointer = &total;

   printf("the result is %d", *my_pointer);
   printf(" and is stored at memory address %p ", my_pointer);
   printf("this is my program sample!");

return 0;
}


Output:
1
the result is 50 and is stored at memory address 0xfffe386c this is my program sample!


Create a new paste based on this one


Comments: