Code:
Please solve my problem!
When i am entering single character instead of 'miz' then it is working great. But when i am using multi character like 'miz' it is showing error output. i did this program with c++ it is working but not working in c.
When i am running this program it is showing {warning] multi character constant.
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();
}