Vidyalelo
C Programming · Q82

Arrays and Strings

Programming · C Programming · question 82

Q82

What will be the output of the following C code? char ch[ ] = "0xC"; if(isxdigit(ch[ ])) printf("ch = %s is hexadecimal character ",ch); else printf("ch = %s is not hexadecimal character ",ch);

A.
ch = 0xC is hexadecimal character
Answer
B.
ch = 0xC is not hexadecimal character
C.
compile error
D.
run-time error

Answer: Option A

Solution

Answer: Option A
No explanation is given for this question Let's Discuss on Board