Code:
#include <stdio.h>
int main()
{
char a;
long b;
printf("Name and password :");
scanf ("%c %lb", &a, &b);
if((a=='onur') && (b=="160897456"))
{
printf("hello sir");
}
else
{
printf("nice try");
}
getchar();
getchar();
getchar();
getchar();
}
erors :
multi-character character constant
comparison is always false due to limited range of data type
ISO C++ forbids comparison between pointer and integer
What am ı doing wrong? And whats is your suggestions ? I think i dont understand properly . Which subjects do ı need to study ?