这段代码有什么问题,它编译时没有错误,但是当我运行它时,我得到一个总线错误
#include <wchar.h>
#include <stdio.h>
int main(void)
{
char *a = "yes";
char *b = "no";
char *c = "";
puts ("\ntype yes or no for selection\n");
puts ("do you like icecream\n");
scanf("%c", &*c);
if (*c == *a){
puts("you win $1000000000");
}
if (*c == *b){
puts("you loose $50");
}
return 0;
}