What will be the output of the following C code?
errno = 0;
y = sqrt(-10);
if(errno == EDOM)
printf("Invalid value \n");
else
printf("Valid value\n");
errno = 0;
y = sqrt(-10);
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 A
Related Questions on Arrays and Strings
Join The Discussion