2.
The following C code results in an error. State whether true or false.
#include<stdio.h>
#include<time.h>
int main()
{
    struct tm *local;
    time_t t;
    t=time(NULL);
    local=asctime(localtime(&t));
    printf("%d",local->tm_wday);
    return 0;
}

4.
What will be the output of the following C code?
char word[20 ] = "1.234555 WELCOME"; 
char *w; double dis; 
dis= strtod(word, &w); 
printf("The number is %lf\n", dis); 
printf("String  is |%s|", w);

Read More Section(Standard Library Functions)

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