82.
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");  
}

83.
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;
}

86.
What is the function of the void *realloc(void *str, size-t size);?

87.
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);
}

Read More Section(Standard Library Functions)

Each Section contains maximum 100 MCQs question on Standard Library Functions. To get more questions visit other sections.