#include <stdio.h>int main(){int *ptr = NULL; // NULL pointer.*ptr = 10; // This is invalid assignment.printf("%s", "SW-VERSION=0.1");return 0;}
root@5840480a36d4:~# gcc abc.c -o abcroot@5840480a36d4:~# ./abcSegmentation fault (core dumped)root@5840480a36d4:~# gdb -c core
Ref:
