11. What will be the output of the following C code?
#include <stdio.h>
#include <limits.h>
int main()
{
printf("The minimum value of LONG = %lf\n", LONG_MIN);
return 0;
}
#include <stdio.h>
#include <limits.h>
int main()
{
printf("The minimum value of LONG = %lf\n", LONG_MIN);
return 0;
}12. What is returned by the function localeconv()?
13. What will be the output of the following C code if the system time is 4:27 PM?
#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,"%H %p %M minutes",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,"%H %p %M minutes",ptr);
puts(str);
return 0;
}14. Which of the following functions returns a pointer to a string representing the date and time stored in a structure?
15. Which macro retrieves the next argument in the parameter list of the function with type type?
16. Which header file should be included if a function has to be defined such that it can accept variable number of arguments?
17. The function computes the exponential function of x.
18. The macro void assert(int expression) allows the diagnostic information to be written in which of the following files?
19. If the result overflows, the function returns the value of the macro HUGE_VAL, carrying the same sign except for the . . . . . . . . function as the correct value of the function.
20. Is this right explanation to the given code?
void *calloc(size_t n, size_t size)
#n -- This is the number of elements to be allocated.
#size -- This is the size of elements.
void *calloc(size_t n, size_t size)
#n -- This is the number of elements to be allocated.
#size -- This is the size of elements.Read More Section(Standard Library Functions)
Each Section contains maximum 100 MCQs question on Standard Library Functions. To get more questions visit other sections.
