41. If setjmp() macro returns directly from the macro invocation, it . . . . . . . .
42. What will be the output of the following C code?
#include <stddef.h>
int main(void)
{
int num[15];
int *p1=&num['a'], *p2=&num['A'];
ptrdiff_t d = p1-p2;
printf("%d", d);
}
#include <stddef.h>
int main(void)
{
int num[15];
int *p1=&num['a'], *p2=&num['A'];
ptrdiff_t d = p1-p2;
printf("%d", d);
}43. What will be the output of the following C code?
int main ()
{
printf("starting of program\n");
printf("program exits\n");
exit(0);
printf("program ends\n");
return(0);
}
int main ()
{
printf("starting of program\n");
printf("program exits\n");
exit(0);
printf("program ends\n");
return(0);
}44. Select the function that reads or sets location dependent information.
45. How many times does the function longjmp() returns?
46. 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);
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);47. 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);
}
#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);
}48. The macro . . . . . . . . defines the number of bits in a byte, which is equal to . . . . . . . .
49. The abs() function computes the absolute value . . . . . . . .
50. Which of the following is the correct description of the macro SIGFPE?
Read More Section(Standard Library Functions)
Each Section contains maximum 100 MCQs question on Standard Library Functions. To get more questions visit other sections.
