i have a question here...
How do I compare two characters?
i.e.
Code:
char rep1, rep2;
scanf("%c %c", &rep1, &rep2);
if('rep1' == 'rep2')
printf("Hello\n ");
what's wrong with the statement?
And how do I write that code if i want to print "Hello"
if rep1 == rep2 ??? they are Characters!!
thanks