1.

What will be the output of the program? #include int main() { char ch; ch = 'A'; printf("The letter is"); printf("%c", ch >= 'A' && ch <= 'Z' ? ch + 'a' - 'A':ch); printf("Now the letter is"); printf("%c\n", ch >= 'A' && ch <= 'Z' ? ch : ch + 'a' - 'A'); return 0; }

A. The letter is aNow the letter is A
B. The letter is ANow the letter is a
C. Error
D. None of above
Answer» B. The letter is ANow the letter is a


Discussion

No Comment Found