Standard Library Functions MCQs

250 questionsC-ProgramPage 24 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 208easy
The mbstowcs() function is used to return the number of array elements modified, not including a terminating zero code, if any.
Question 209easy
longjmp() function is the only function defined under the header file setjmp.h?
Question 210easy
void assert(int expression) when the expression is evaluated to true?
Advertisement
Question 211easy
What will be the output of the following C code?
#include <stdio.h>
#include <limits.h>
int main() 
{
    printf("The minimum value of LONG = %lf\n", LONG_MIN);
    return 0;
}
Question 212easy
What is returned by the function localeconv()?
Question 213easy
What will be the output of the following C code if the system time is 4:27 PM?
#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,"%H %p %M minutes",ptr);
    puts(str);
    return 0;
}
Advertisement
Question 214easy
Which of the following functions returns a pointer to a string representing the date and time stored in a structure?
Question 215easy
Which macro retrieves the next argument in the parameter list of the function with type type?
Question 216easy
Which header file should be included if a function has to be defined such that it can accept variable number of arguments?
Standard Library Functions MCQs with Answers & Solutions — C-Program | GrabStudy