I am new in C programming. Can you please advise, what's wrong with my code? It looks like the if
statement is not working, and instead it's jumping and printing the else
statement.
#include <stdio.h>
#include <stdlib.h>
int main()
{
char profession;
printf("what is your profession? \n");
scanf(" %s", profession);
if(profession==“QA”)
{
printf(“Go and Test\n“);
}
else
{
printf("Do whatever you want");
}
return 0;
}