71. Select the right statement.
72. What will be the output of the following C code?
#include<time.h>
int main (void)
{
float n = time(NULL);
printf("%.2f\n" , n);
}
#include<time.h>
int main (void)
{
float n = time(NULL);
printf("%.2f\n" , n);
}73. What will be the output of the following C code if the current system date is 6/22/2017?
#include<stdio.h>
#include<stdlib.h>
#include<time.h>
int main()
{
time_t ct;
time(&ct);
struct tm *mt=localtime(&ct);
printf("%d\n",mt-> tm_mon+2);
}
#include<stdio.h>
#include<stdlib.h>
#include<time.h>
int main()
{
time_t ct;
time(&ct);
struct tm *mt=localtime(&ct);
printf("%d\n",mt-> tm_mon+2);
}74. What will be the output of the following C code, if the system date is 6/23/2017?
#include<stdio.h>
#include<time.h>
int main()
{
struct tm *local;
time_t t;
t=time(NULL);
local=localtime(&t);
printf("%d",local->tm_mday);
return 0;
}
#include<stdio.h>
#include<time.h>
int main()
{
struct tm *local;
time_t t;
t=time(NULL);
local=localtime(&t);
printf("%d",local->tm_mday);
return 0;
}75. The calloc() function allocates space for an array of n objects, each of whose size is defined by size. Space is initialized to all bits zero.
76. Select the macro that affects the information provided by localeconv function.
77. The value of CHAR_MAX will be equal to SCHAR_MAX when . . . . . . . .
78. Which of the given option is declared under the header file stdlib.h?
79. If access to the varying arguments is desired then the called function shall declare . . . . . . . . having type va_list.
80. The assert macro returns . . . . . . . . value.
Read More Section(Standard Library Functions)
Each Section contains maximum 100 MCQs question on Standard Library Functions. To get more questions visit other sections.
