O'Reilly logo
  • You Wang thinks this is interesting:

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.

From

Cover of Mastering Algorithms with C

Note

p.c: In function ‘main’:
p.c:4:11: warning: initialization makes pointer from integer without a cast [-Wint-conversion]
int *a = 10;
^~
yo@yo-VirtualBox:~/dev$ ./a.out
Segmentation fault (core dumped)