Which statement is true regarding abs() and labs()?
Answer: A
No answer description available for this question.
Enter details here
FILE is a structure suitably typedef'd in "stdio.h".
Answer: A
No answer description available for this question.
Enter details here
Which of the given function differs from the statement’errno is not neccessarily set on conversion error’?
Answer: D
The function atoi() and atol() are similar to strtol(), atof() is similar to strtod() except that errono is not necessarily set on conversion error.
Enter details here
Point out the error in the following program.
#include
int main()
{
fprintf("Compscibits");
printf("%.ef", 2.0);
return 0;
}
Answer: B
No answer description available for this question.
Enter details here
What will be the output of the program?
#include
int main()
{
int i;
char c;
for(i=1; i<=5; i++)
{
scanf("%c", &c); /* given input is 'a' */
printf("%c", c);
ungetc(c, stdin);
}
return 0;
}
Answer: B
No answer description available for this question.
Enter details here
What will be the output of the program?
#include
int main()
{
int i;
char c;
for(i=1; i<=5; i++)
{
scanf("%c", &c); /* given input is 'a' */
printf("%c", c);
ungetc(c, stdin);
}
return 0;
}
Answer: B
No answer description available for this question.
Enter details here
In the c library function void (*signal(int sig, void (*func)(int)))(int), which statement is true with respect to func?
Answer: A
No answer description available for this question.
Enter details here
If the result underflow, the function returns zero.
Answer: A
No answer description available for this question.
Enter details here
What is returned by the function localeconv()?
Answer: D
No answer description available for this question.
Enter details here
Which of the given statement is true with respect to the function atexit()?
Answer: B
No answer description available for this question.
Enter details here