Next time, please post your code in [code][/code] tags, making sure to post well-formatted code (so we can read it) and to post it as plain text (so our line numbering and syntax highlighting will work). It should look like
Code:
#include<stdio.h>
#include<string.h>
main()
{
char a;
printf("Please Enter your First Name: ");
scanf("%s",&a);
if(a=='miz')
{
printf("\n\aYou are awesome!");
}
else
{
printf("\n\aYou are not awesome!");
}
getch();
}
You should declare main to explicitly return an int, and I prefer to explicitly state no parameters (i.e. 'void' in the param list):
Single 'quotes' are for character literals. Double "quotes" are for string literals. You want double quotes. Also, you can't compare strings with == in C. You need to use the strcmp function.