If you must use C rather than C++, then use strcmp()
Note: the scanf() statement changed from "%c" to "%3s".
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
#include <stdio.h>
#include <string.h>
#include <conio.h>
usingnamespace std;
int main()
{
char answer[4];
printf("Do you have a car?(yes/no)");
scanf("%3s", answer);
if (!strcmp(answer, "yes"))
printf("Cool...");
if (!strcmp(answer, "no"))
printf("You should buy one.");
printf("Press any key to continue...");
getch();
}