51.
What is the meaning of the following C code if output is 0?
#include<stdio.h>
#include<time.h>
int main()
{
    struct tm *local;
    time_t t;
    t=time(NULL);
    local=localtime(&t);
    printf("%d",local->tm_isdst);
    return 0;
}

52.
What is the purpose of the given C code?
#include <stdlib.h> 
_Mbsave _Mbxtowc = {0};  
int (mbtowc) (wchar_t *pwc, const char *a, size_t n) 
{
return (-Mbtowc (pwc, s, n, &-Mbxtowc) ) ;
}

53.
What will the following C code do on compilation?
void main () 
{
   char com[50];  
   strcpy( com, "dir" ); 
   system(com); 
}

55.
What will be the output of the following C code if the current system date is 6/22/2017?
#include<stdio.h>
#include<stdlib.h>
#include<time.h>
typedef struct tm tm;
int main()
{
    time_t ct;
    time(&ct);
    tm *mt=localtime(&ct);
    printf("%d\n",mt-> tm_year);
}

Read More Section(Standard Library Functions)

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