just to let you all know im pretty new at programming and i think I am just missing something small but I dont know what it is. When I compile my code I am getting this error "format %d
expects a matching int
argument [-Wformat=
]". I have tried many things. I have tried making all the function types to char
and them all to int
. I get similar errors.
char *phoneInput(void)
{
char phone[11];
printf("Input the politicians phone number with no spaces: ");
fgets(phone, 10, stdin);
return 0;
}
char printPhone(char phone[11])
{
printf("- Phone Number: (%d%d%d)%d%d%d-%d%d%d%d", phone[0], phone[1], phone[2],
phone[3], phone[5], phone[6], phone[7], phone[8], phone[9]);
return 0;
}