Which among the given function does not return a value?
Select an option to see the answer and solution.
What will the code display on compiling?
void funccall()
{
printf("this is funccall\n");
}
void main ()
{
atexit(funccall);
printf("program starts\n");
printf("program ends\n");
}
Select an option to see the answer and solution.
What will be the output of the following C code if the system time is 1:52 PM (Sunday)?
#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,"%I",ptr);
puts(str);
return 0;
}
Select an option to see the answer and solution.
The macro definition of INT_MIN is . . . . . . . .
Select an option to see the answer and solution.
Which of the following is defined under the header file time.h?
Select an option to see the answer and solution.
What is the function of the void *realloc(void *str, size-t size);?
Select an option to see the answer and solution.
What will be the output of the following C code if the value of UCHAR_MAX is 127?
#include<stdio.h>
#include<limits.h>
int main()
{
int d;
d=CHAR_MAX;
printf("%c",d);
}
Select an option to see the answer and solution.
mblen() function returns 0,if a null wide character was recognized. It returns -1 if an invalid multi-byte sequence was encountered.
Select an option to see the answer and solution.
size_t is of . . . . . . . . type.
Select an option to see the answer and solution.
Which macro can be used to detect and report exceptional conditions?
Select an option to see the answer and solution.
What are the contents of the register?
Select an option to see the answer and solution.
The header file setjmp.h is used to . . . . . . . .
Select an option to see the answer and solution.
Name the function that breaks a floating-point number into a normalized fraction and an integral power of 2.
Select an option to see the answer and solution.
Select the correct declaration of setjmp().
Select an option to see the answer and solution.
What will be the output of the following C code if the system date is 6/2/2017(Friday)?
#include<stdio.h>
#include<time.h>
int main()
{
struct tm *local, *gm;
time_t t;
t=time(NULL);
local=localtime(&t);
printf("%d",local->tm_wday);
return 0;
}
Select an option to see the answer and solution.
A function is declared as sqrt(-x) under the header file math.h, what will the function return?
Select an option to see the answer and solution.
void (*signal(int sig, void (*func)(int)))(int);If the value of func is SIG_IGN then . . . . . . . .
Select an option to see the answer and solution.
Which macro saves the current environment into the variable environment for later use by the function longjmp().
Select an option to see the answer and solution.
double . . . . . . . . (double x, double y) computes the floating-point remainder of x/y.
Select an option to see the answer and solution.
Which statement is true regarding abs() and labs()?
Select an option to see the answer and solution.