Ok, im using C and i cant get this code to work...
int check;
scanf("%s", &check);
if(check == 'hi')
printf("Hello\n");
The problem is when I type "hi", it wont print "Hello".
Any idea?
|
Results 1 to 9 of 9
Thread: The If StatementThreaded View
|
Click Here to Expand Forum to Full Width |