/* * Copyright (C) 2014 Tomasz Kramkowski * * This program is free software. It is licensed under version 3 of the * GNU General Public License. * * You should have received a copy of the GNU General Public License * along with this program. If not, see [http://www.gnu.org/licenses/]. */ // Eh?? #include int main () { long *ptr; //memory pointer long i; //increment to be used as pointer address printf("0x%X \n",&main); ptr = &main; printf(" --ADDRESS- : VAL- \n"); for(i = 0; i <= 9999; i++) //could probably be done without using i { printf(" 0x%X : 0x%08X \n", ptr, *ptr); //output ptr++; } return 0; }