In the code below what I want to do is ask the user if he wants to play the game or not but the scanf doesn't work can you please tell me whats going wrong
Code:#include <stdio.h> #include <conio.h> int main() { clrscr(); char name[50], a; printf("\nPROJECT BEASTS\n"); printf("Welcome to Project Beasts please enter your name:"); scanf("%s", &name); printf("\nOk %s do you want to play the game (y/n):", name); scanf("%c", &a); printf("%c", a); return 0; }