C-Library-Functions
- What is function srand(unsigned)?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: C
Sets the seed for rand
- Which among the following mathematical function do not have a “double” return-type?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: C
both ceil(x); and floor(x);
- What will be the output of the following C code?
#include <stdio.h>
#include <math.h>
void main()
{
int n = sqrt(16);
printf("%d\n", n);
}
-
View Hint View Answer Discuss in Forum
NA
Correct Option: C
4
- What will be the output of the following C code?
#include <stdio.h>
#include <math.h>
void main()
{
int n = fabs(-65);
printf("%d\n", n);
}
-
View Hint View Answer Discuss in Forum
NA
Correct Option: D
65
- What will be the output of the following C code?
#include <stdio.h>
#include <math.h>
void main()
{
int num = pow(4, 2);
printf("%d\n", num);
}
-
View Hint View Answer Discuss in Forum
NA
Correct Option: C
16