91. Which of the following macros is defined under the header limits.h?
92. A range error occurs if the result of the function cannot be represented as a value.
93. Choose the correct statement.
94. What will be the output of the following C code, given that the maximum value of signed char is 127 and that of unsigned char is 255.
#include<stdio.h>
#include<limits.h>
#define SCHAR_MAX
main()
{
printf("%d",SCHAR_MAX+1);
}
#include<stdio.h>
#include<limits.h>
#define SCHAR_MAX
main()
{
printf("%d",SCHAR_MAX+1);
}95. The . . . . . . . . function returns no value.
96. What will be the output of the following C code?
char str[] ;
strcpy(str, "Hello");
res = atoi(str);
printf(" %s %d\n", str, res);
char str[] ;
strcpy(str, "Hello");
res = atoi(str);
printf(" %s %d\n", str, res);97. What will be the output of the following C code?
void main()
{
div_t res;
res = div(34, 4);
printf("quotient part = %d\n", res.quot);
printf("remainder part = %d\n", res.rem);
}
void main()
{
div_t res;
res = div(34, 4);
printf("quotient part = %d\n", res.quot);
printf("remainder part = %d\n", res.rem);
}98. Which function returns a pseudo-random integer?
99. Which of the following format specifiers is used to specify whether the given time is in AM or PM?
100. Which among the given function causes abnormal program termination ?
Read More Section(Standard Library Functions)
Each Section contains maximum 100 MCQs question on Standard Library Functions. To get more questions visit other sections.
