31. The maximum value of a signed char is not the same as the maximum value of an unsigned char.
32. What will be the output of the following C code?
Maximum value of int = 1000
Maximum value of float = 5000
Maximum value of short int = 327
Minimum value of short int = -328
#include<stdio.h>
#include<limits.h>
#include<float.h>
main()
{
short int d;
d=INT_MAX + FLT_MAX;
printf("%d",d);
}
Maximum value of int = 1000
Maximum value of float = 5000
Maximum value of short int = 327
Minimum value of short int = -328
#include<stdio.h>
#include<limits.h>
#include<float.h>
main()
{
short int d;
d=INT_MAX + FLT_MAX;
printf("%d",d);
}33. Which function is used to recombine the fraction and exponent parts of a floating-point value after you have worked on them separately?
34. What will be the output of the following C code?
#include<stdio.h>
#include<time.h>
main()
{
struct tm t;
time_t tc;
t.tm_year=2017-1900;
t.tm_mday=25;
t.tm_mon=5;
t.tm_hour=1;
t.tm_min=30;
t.tm_sec=0;
t.tm_isdst=0;
tc=mktime(&t);
printf(ctime(&tc));
}
#include<stdio.h>
#include<time.h>
main()
{
struct tm t;
time_t tc;
t.tm_year=2017-1900;
t.tm_mday=25;
t.tm_mon=5;
t.tm_hour=1;
t.tm_min=30;
t.tm_sec=0;
t.tm_isdst=0;
tc=mktime(&t);
printf(ctime(&tc));
}35. Which macro affects the strftime() function?
36. . . . . . . . . gives receipt of an interactive attention signals.
37. What will be the output of the following C code?
#include<stdio.h>
#include<limits.h>
main()
{
if(UCHAR_MAX<=SCHAR_MAX)
printf("hello");
else
printf("good");
}
#include<stdio.h>
#include<limits.h>
main()
{
if(UCHAR_MAX<=SCHAR_MAX)
printf("hello");
else
printf("good");
}38. All the functions in this library take as a parameter and return as the output.
39. The following message is displayed in stderr.
Assertion failed: expression, file filenum, line nmn
Assertion failed: expression, file filenum, line nmn
40. The assert shall be implemented as a . . . . . . . . not as an actual . . . . . . . .
Read More Section(Standard Library Functions)
Each Section contains maximum 100 MCQs question on Standard Library Functions. To get more questions visit other sections.
