What will be the output of the following C code?
errno = 0;
y = sqrt(2);
if(errno == EDOM)
printf("Invalid value\n");
else
printf("Valid value\n");
errno = 0;
y = sqrt(2);
if(errno == EDOM)
printf("Invalid value\n");
else
printf("Valid value\n");
A. Invalid value
B. Valid value
C. No output
D. Compile error
Answer: Option B
Join The Discussion