Hello@
i have written this
Code:#include <stdio.h>
struct account_info
{
char name;
char surname;
int account;
int rest;
} a;
main()
{
printf("Give name:");
scanf("%c\n", &a.name);
printf("You gave %c\n", a.name);
}
i put John, but in the end the programme print Only the 1st letter, J.
what is the problme?
THXXXXXXXXXXXXXX