What will be the output of the following C code?
#include <stdio.h>
#include <ctype.h>
int main()
{
char i = 9;
if (isdigit(i))
printf("digit\n");
else
printf("not digit\n");
return 0;
}
#include <stdio.h>
#include <ctype.h>
int main()
{
char i = 9;
if (isdigit(i))
printf("digit\n");
else
printf("not digit\n");
return 0;
}
A. digit
B. not digit
C. Depends on the compiler
D. None of the mentioned
Answer: Option B
Join The Discussion