原创 段錯誤 (核心已轉儲) 字符指針 ubuntu

#include<stdio.h> int main() { char *p=""; scanf("%s",p); printf("%s",p); return 0; } 報錯: smart@sm