I am trying to print the out put of name and phone. Keeps showing this two errors in terminal
format ‘%s’ expects argument of type ‘char *’, but argument 2 has type ‘int’
and
format ‘%s’ expects argument of type ‘char *’, but argument 3 has type ‘int’
my code:
int main(void)
{
char name,phone;
int age;
printf("Kindly input your name, age and phone number");
scanf("%s %s %d", &name, &phone, &age);
printf("%s %s %d\n", name, phone, age);
return 0;
}