A compile-time error or warning occurs because the code is trying to initialize an integer pointer to an integer, which is a type conflict.
p.c: In function ‘main’:
p.c:4:11: warning: initialization makes pointer from integer without a cast [-Wint-conversion]
int *a = 10;
Segmentation fault (core dumped)
Share this highlighthttp://www.safaribooksonline.com/a/mastering-algorithms-with/13019600/