Standard Library Functions MCQs

250 questionsC-ProgramPage 27 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 235easy
Which macro sets everything defined under locale. h?
Question 236easy
The void longjmp( jmp-buf env, int val) function causes setjmp() macro to return . . . . . . . . value; if val is 0.
Question 237easy
Which of the following functions is used to convert the date and time into a calendar format?
Advertisement
Question 238easy
What does raise functions declared in signal.h do?
Question 239easy
Which function converts the wide-character string to a multibyte string?
Question 240easy
Select the macro that abnormally terminates the program.
Advertisement
Question 241easy
If setjmp() macro returns directly from the macro invocation, it . . . . . . . .
Question 242easy
What will be the output of the following C code?
#include <stddef.h>
int main(void)
{
    int num[15];
    int *p1=#['a'], *p2=#['A'];
    ptrdiff_t d = p1-p2;
    printf("%d", d);
}
Question 243easy
What will be the output of the following C code?
int main () 
{ 
   printf("starting of program\n"); 
   printf("program exits\n"); 
   exit(0);  
   printf("program ends\n");  
   return(0); 
}