int main(void) {
char studentname;

printf("Enter Student Name: \n");
scanf("%c", &studentname);
printf("%c is his name.", studentname);

return 0;
}
Can anyone tell me what im doing wrong here when i enter a name it only prints the first letter
for example i input John
Output: J is his name