#include <stdio.h>
#include <stdlib.h>
const int ARRAY_SIZE = 10000;
int main(){
int stackVariable = -1;
printf("&stackVariable: %p\n", &stackVariable);
int* myIntPtr = NULL;
myIntPtr = (int*) malloc( sizeof(int) );
printf("myIntPtr: %p, *myIntPtr: %d\n", myIntPtr, *myIntPtr);
*myIntPtr = 42;
printf("myIntPtr: %p, *myIntPtr: %d\n", myIntPtr, *myIntPtr);
int* myArrayPtr = (int*) malloc( ARRAY_SIZE * sizeof( int) );
printf("myArrayPtr: %p, *myArrayPtr: %d\n", myArrayPtr, *myArrayPtr);
myArrayPtr[ 55 ] = 7;
free( myIntPtr );
free( myArrayPtr );
return 0;
}