For this Question: Write a program to check whether character is an alphabet or not using conditional operator.The first line of the input contains a character ch.

<b>Constraints</b>
'a', 'A' <= ch <= 'z', 'Z'Print "YES" if it's alphabet otherwise "NO".Sample Input :
a

Sample Output
YES, I have written this Solution Code: #include <stdio.h>

int main()
{
    char ch;
    scanf("%c", &ch);
    (ch>='a' && ch<='z') || (ch>='A' && ch<='Z') 
        ? printf("YES")
        : printf("NO");

    return 0;
}, In this Programming Language: C++, Now tell me if this Code is compilable or not?