So I decided to post it here.
Actually it's part of bigger program but i wrote the problematic part into a new file for better reading.
Here is my code:
scanf(" %s", input);
if(input == 'Y' || input == 'N')
printf("It doesn't work");
At the start program waits for input from user, when you type in Y/N or something else the if statement checks what you typed, the problem is that the if statement does not run either you type Y/N or something else. It always runs the else statement. I tried same thing with an integer and it works. So i realized that problem is between char array and if statement but I dont know how to fix it.