#include <stdio.h>
int main()
{
char c='w';
if((c>110 && c>120)&&(c<120 && c<200))
printf("true");
else
printf("false");
return 0;
}
This is my code. The code does give output, but vscode gives me a warning that the comparison of characters with constants(like 200, it specifically shows this only for 200), will always be true, but it does execute the code successfully and gives the final result, which is "false". I tried the same code on the on an online compiler, here, the online compiler gives the result without any warnings.
Any reason for this?