Standard Library Functions MCQs

250 questionsC-ProgramPage 10 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 82easy
What will the code display on compiling?
void funccall() 
{ 
   printf("this is funccall\n"); 
}  
void main () 
{   
    atexit(funccall); 
    printf("program starts\n");  
    printf("program ends\n");  
}
Question 83easy
What will be the output of the following C code if the system time is 1:52 PM (Sunday)?
#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,"%I",ptr);
    puts(str);
    return 0;
}
Question 84easy
The macro definition of INT_MIN is . . . . . . . .
Advertisement
Question 85easy
Which of the following is defined under the header file time.h?
Question 86easy
What is the function of the void *realloc(void *str, size-t size);?
Question 87easy
What will be the output of the following C code if the value of UCHAR_MAX is 127?
#include<stdio.h>
#include<limits.h>
int main()
{
    int d;
    d=CHAR_MAX;
    printf("%c",d);
}
Advertisement
Question 88easy
mblen() function returns 0,if a null wide character was recognized. It returns -1 if an invalid multi-byte sequence was encountered.
Question 89easy
size_t is of . . . . . . . . type.
Question 90easy
Which macro can be used to detect and report exceptional conditions?