61. Which function will return the quotient and remainder on division of numerator with denominator?
62. What will be the output of the following C code if it is executed on 2nd January, 2017 (system date)?
#include<stdio.h>
#include<time.h>
int main()
{
struct tm *local, *gm;
time_t t;
t=time(NULL);
local=localtime(&t);
printf("%d",local->tm_yday);
return 0;
}
#include<stdio.h>
#include<time.h>
int main()
{
struct tm *local, *gm;
time_t t;
t=time(NULL);
local=localtime(&t);
printf("%d",local->tm_yday);
return 0;
}63. The function abort() is defined in which of the following header file?
64. HUGE_VAL macro is used when the output of the function may not be . . . . . . . .
65. Which statement is true with respect to RAND_MAX?
66. What will be the output of the following C code?
#include<stdio.h>
#include<limits.h>
main()
{
printf("%f",FLT_MIN);
}
#include<stdio.h>
#include<limits.h>
main()
{
printf("%f",FLT_MIN);
}67. What will be the output of the following C code if the system date is 8/22/2016?
#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,"%B",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,"%B",ptr);
puts(str);
return 0;
}68. The purpose of the function ctime() is that . . . . . . . .
69. The macros defined under the header file limits.h are not defined under any other header file.
70. What will be the output of the following C code?
#include <stdio.h>
#include <time.h>
int main ()
{
double d;
d = difftime (5,17);
printf ("%.2f\n", d );
return 0;
}
#include <stdio.h>
#include <time.h>
int main ()
{
double d;
d = difftime (5,17);
printf ("%.2f\n", d );
return 0;
}Read More Section(Standard Library Functions)
Each Section contains maximum 100 MCQs question on Standard Library Functions. To get more questions visit other sections.
