C-Library-Functions
- log(x) function defined in math.h header file is __________.
-
View Hint View Answer Discuss in Forum
NA
Correct Option: C
Natural base logarithm
- What will be the output of the following C code?
#include <stdio.h>
#include <math.h>
int main()
{
int n = 10;
printf("%f\n", log10(n));
return 0;
}
-
View Hint View Answer Discuss in Forum
NA
Correct Option: D
1.000000
- What type of inputs are accepted by mathematical functions?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: C
double
- In linux, apart from including math header file, the program is successfully executed by which of the following?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: A
cc -lm filename.c
- Which of the following is not a valid mathematical function?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: B
fmod(x);