C-Library-Functions
- What will be the output of the following C code?
#include <stdio.h>
#include <math.h>
int main()
{
unsigned int num = 15;
printf("%f\n", fabs(num));
return 0;
}
-
View Hint View Answer Discuss in Forum
NA
Correct Option: D
15.000000
- What type of inputs are accepted by mathematical functions?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: C
double
- Which of the following is not a valid mathematical function?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: B
fmod(x);
- 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
- What will be the output of the following C statement?
int ungetc(int c, FILE *fp)
-
View Hint View Answer Discuss in Forum
NA
Correct Option: D
Either c or EOF for an error