Standard Library Functions MCQs

250 questionsC-ProgramPage 28 of 28

Practice free Standard Library Functions multiple-choice questions with instant answer feedback and step-by-step solutions. Click an option to check yourself, reveal the full explanation, and work through all 250 questions — no login required.

Question 244easy
Select the function that reads or sets location dependent information.
Question 245easy
How many times does the function longjmp() returns?
Question 246easy
What will be the output of the following C code?
double x, deg, rad;
x = 1.0;
val = 180.0 / 3.14;
deg = atan (x) * val;
printf("The arc tangent of %lf is %lf degrees", x, deg);
Advertisement
Question 247easy
What will be the output of the following C code?
#include <assert.h> 
#include <stdio.h>  
void main() 
{ 
   int n=11; 
   char str[50]="program";
   assert(n >= 10); 
   printf(" output: %d\n", n); 
   assert(str != NULL); 
   printf("output: %s\n", str); 
}
Question 248easy
The macro . . . . . . . . defines the number of bits in a byte, which is equal to . . . . . . . .
Question 249easy
The abs() function computes the absolute value . . . . . . . .
Advertisement
Question 250easy
Which of the following is the correct description of the macro SIGFPE?