What will be the output of the following C code? [code]errno = 0; y = sqrt(-10); if(errno == EDOM) printf("Invalid value \n"); else pr

What will be the output of the following C code?
Code:
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
 

Tìm kiếm

Back
Top