21. What does the given C code do?
double atan2 (double y, double x);
double atan2 (double y, double x);22. A type whose alignment requirement is at least as large as that of every data type . . . . . . . .
23. Select the correct statement.
24. If the expression in void assert(int expression) is zero then a message is printed on stderr(standard error file).
25. Correct code to turn assertions ON at various places throughout a source file is . . . . . . . .
26. The . . . . . . . . function is used to convert the initial portion of the string pointed to by, to unsigned long int representation.
27. Which function restores the environment saved by the most recent invocation of the setjmp() macro in the same invocation of the program?
28. Which function searches an environmenr list that are provided by the host environment?
29. What will be the output of the following C code if the name entered is "TOM" and time taken to enter this name is 2 seconds?
#include <stdio.h>
#include <time.h>
int main ()
{
time_t time1,time2;
char get_input [256];
double dif_sec;
time (&time1);
printf ("Please enter the name of your pet: ");
gets (get_input);
time (&time2);
dif_sec = difftime (time2,time1);
printf ("%.2f\n", dif_sec );
return 0;
}
#include <stdio.h>
#include <time.h>
int main ()
{
time_t time1,time2;
char get_input [256];
double dif_sec;
time (&time1);
printf ("Please enter the name of your pet: ");
gets (get_input);
time (&time2);
dif_sec = difftime (time2,time1);
printf ("%.2f\n", dif_sec );
return 0;
}30. What error occurs if an input argument is outside the domain over which the mathematical function is de?ned?
Read More Section(Standard Library Functions)
Each Section contains maximum 100 MCQs question on Standard Library Functions. To get more questions visit other sections.
