Hi I'm new to programming, but I'm trying to figure out the error in this program segment. please help. When I try to compiler and run it.
char x = 'a', y = 'a';
if (strcmp(x,y) ==0)
exit(0)
here's the errors I get
In function `int main(int, char**)':
invalid conversion from `char' to `const char*'
initializing argument 1 of `int strcmp(const char*, const char*)'
invalid conversion from `char' to `const char*'
initializing argument 2 of `int strcmp(const char*, const char*)'