Standard Library Functions MCQs
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 199easy
Which of the following format specifiers is used to specify whether the given time is in AM or PM?
Question 200easy
Which among the given function causes abnormal program termination ?
Question 201easy
What is returned by the function if the space cannot be allocated by the function malloc(), realloc() and calloc()?
Advertisement
Question 202easy
The following C code results in an error. State whether true or false.
#include<stdio.h>
#include<time.h>
int main()
{
struct tm *local;
time_t t;
t=time(NULL);
local=asctime(localtime(&t));
printf("%d",local->tm_wday);
return 0;
}Question 203easy
RAND_MAX macro is the maximum value returned by the rand function.
Question 204easy
What will be the output of the following C code?
char word[20 ] = "1.234555 WELCOME";
char *w; double dis;
dis= strtod(word, &w);
printf("The number is %lf\n", dis);
printf("String is |%s|", w);Advertisement
Question 205easy
Which function returns the arc sine in the range [-pi/2, +pi/2] radians?
Question 206easy
If the result underflow, the function returns zero.
Question 207easy
Which of the following header file defines one function longjmp(), and one variable type jmp_buf?