Which of the given structure is returned by the function ldiv()?
A. div_t
B. ldiv_t
C. div_i
D. ldiv_i
Select an option to see the answer and solution.
If NDEBUG is defined as a macro name, at the point where <assert.h> is included, then assert macro is defined as #define assert(ignore) ((void)0).
Select an option to see the answer and solution.
Choose the right declaration of longjmp() function.
A. void longjmp(jmp_buf environment, int value)
B. void longjmp(setjmp environment, int value)
C. void longjmp(int value, jmp_buf environment)
D. void longjmp(int value, setjmp environment)
Select an option to see the answer and solution.
Which of the given function converts the string pointed to, by the argument str to a floating-point number?
A. atof(const char *str)
B. strtod(const char *str, char **endptr)
C. atoi(const char *str)
D. atol(const char *str)
Select an option to see the answer and solution.
What will the following C statement do?
#include < setjmp.h >
int setjmp(jmp_buf env);A. save the current state of the registers into env
B. resets the registers to the values saved in env
C. provides a definition for env structure
D. accept variable(env) argument lists to be written
Select an option to see the answer and solution.
Select the multibyte character function defined under the header file stdlib.h.
A. wctomb()
B. mblen()
C. mbtowc()
D. all of the mentioned
Select an option to see the answer and solution.
When we use multiple alignas specifiers in the same declaration, the . . . . . . . . one is used.
A. first
B. strictest
C. last
D. middle
Select an option to see the answer and solution.
The . . . . . . . . function sorts an array of objects.
A. bsort()
B. hsort()
C. ssort()
D. qsort()
Select an option to see the answer and solution.
The system() function passes the string pointed to by string to the host environment to be executed by a command processor in an implementation-defined manner.
int system(const char *string);Select an option to see the answer and solution.
For the given math function, an error occurs if the arguments are not in the range [-1, +1].
double acos(double x);A. range error
B. domain error
C. no error
D. domain and range error
Select an option to see the answer and solution.
Which of the following macros is defined under the header limits.h?
A. FLT_ROUNDS
B. USHRT_MAX
C. DBL_MAX
D. DECIMAL_DIG
Select an option to see the answer and solution.
A range error occurs if the result of the function cannot be represented as a value.
A. int
B. short int
C. double
D. float
Select an option to see the answer and solution.
Choose the correct statement.
A. bsearch() returns no value to the function
B. getenv() returns no value to the function
C. qsort() returns no value to the function
D. realloc() returns no value to the function
Select an option to see the answer and solution.
What will be the output of the following C code, given that the maximum value of signed char is 127 and that of unsigned char is 255.
#include<stdio.h>
#include<limits.h>
#define SCHAR_MAX
main()
{
printf("%d",SCHAR_MAX+1);
}Select an option to see the answer and solution.
The . . . . . . . . function returns no value.
A. malloc()
B. realloc()
C. free()
D. calloc()
Select an option to see the answer and solution.
What will be the output of the following C code?
char str[] ;
strcpy(str, "Hello");
res = atoi(str);
printf(" %s %d\n", str, res);A. Hello 0.000000
B. "Hello" 0.000000
C. Hello 0
D. "Hello" 0
Select an option to see the answer and solution.
What will be the output of the following C code?
void main()
{
div_t res;
res = div(34, 4);
printf("quotient part = %d\n", res.quot);
printf("remainder part = %d\n", res.rem);
}A. quotient part=0
remainder part=4
B. quotient part=8
remainder part=2
C. quotient part=4
remainder part=0
D. quotient part=2
remainder part=8
Select an option to see the answer and solution.
Which function returns a pseudo-random integer?
A. srand()
B. rand()
C. malloc()
D. alloc()
Select an option to see the answer and solution.
Which of the following format specifiers is used to specify whether the given time is in AM or PM?
Select an option to see the answer and solution.
Which among the given function causes abnormal program termination ?
A. exit()
B. abort()
C. atexit()
D. getenv()
Select an option to see the answer and solution.