81. Which among the given function does not return a value?
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");
}
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;
}
#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;
}
84. The macro definition of INT_MIN is . . . . . . . .
85. Which of the following is defined under the header file time.h?
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);
}
#include<stdio.h>
#include<limits.h>
int main()
{
int d;
d=CHAR_MAX;
printf("%c",d);
}
88. mblen() function returns 0,if a null wide character was recognized. It returns -1 if an invalid multi-byte sequence was encountered.
89. size_t is of . . . . . . . . type.
90. Which macro can be used to detect and report exceptional conditions?
Read More Section(Standard Library Functions)
Each Section contains maximum 100 MCQs question on Standard Library Functions. To get more questions visit other sections.