Standard Library Functions MCQs

250 questionsC-ProgramPage 19 of 28

Practice free Standard Library Functions multiple-choice questions with instant answer feedback and step-by-step solutions. Click an option to check yourself, reveal the full explanation, and work through all 250 questions — no login required.

Question 163easy
The function abort() is defined in which of the following header file?
Question 164easy
HUGE_VAL macro is used when the output of the function may not be . . . . . . . .
Question 165easy
Which statement is true with respect to RAND_MAX?
Advertisement
Question 166easy
What will be the output of the following C code?
#include<stdio.h>
#include<limits.h>
main()
{
    printf("%f",FLT_MIN);
}
Question 167easy
What will be the output of the following C code if the system date is 8/22/2016?
#include<stdio.h>
#include<time.h>
int main()
{
    struct tm *ptr;
    time_t t;
    char str[100];
    t = time(NULL);
    ptr = localtime(&t);
    strftime(str,100,"%B",ptr);
    puts(str);
    return 0;
}
Question 168easy
The purpose of the function ctime() is that . . . . . . . .
Advertisement
Question 169easy
The macros defined under the header file limits.h are not defined under any other header file.
Question 170easy
What will be the output of the following C code?
#include <stdio.h>
#include <time.h>
int main ()
{
	double d;
	d = difftime (5,17);
	printf ("%.2f\n", d );
	return 0;
}
Question 171easy
Select the right statement.