After I compile:Code:1 #include <stdio.h> 2 3 main() 4 { 5 int* x; 6 x = (int*) malloc(sizeof(int)); 7 scanf("*x: %d", x); 8 printf("*x: %d\n", *x); 9 }
Why is this? If I change the *x to an x in the printf statement I get exactly the same output.Code:[oadams@lister] pointers [1:119] a.out 4 *x: 134613344