Standard Library Functions MCQs

250 questionsC-ProgramPage 5 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 37easy
Which of the given statement is true with respect to the function atexit()?
Question 38easy
What will be the output of the following C code?
#include <assert. h> 
#include <stdio . h>
 #include <stdlib.h> 
void -Assert (char *mesg) 
{
   fputs (mesg, stderr); 
   fputs (" -- assertion failed\n" , stderr); 
   abort () ; 
}
Question 39easy
Which is the true statement with respect to the function longjmp()?
Advertisement
Question 40easy
Which among the given header file is used to handle different signals reported during program execution?
Question 41easy
Which of the given function is used for searching?
Question 42easy
The library function clock() returns the number of . . . . . . . . elapsed since the start of the program.
Advertisement
Question 43easy
Which of the given C function can be used instead of the apparent identity pointed to by y?
int x=1; 
double y= 0.5 * (exp (x) + exp (-x));
Question 44easy
Select the right statement with reference to malloc() and calloc().
Question 45easy
Which is the correct declaration of macro assert?