Top

Library Functions

12.

FILE is a structure suitably typedef'd in "stdio.h".

Answer: A

No answer description available for this question.

Enter details here

13.

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

14.

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

15.

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

16.

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

17.

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

18.

If the result underflow, the function returns zero.

Answer: A

No answer description available for this question.

Enter details here

Answer: D

No answer description available for this question.

Enter details here

Answer: B

No answer description available for this question.

Enter details here

Loading…
Tags: Library Functions Questions and Answers || Library Functions MCQ Questions and Answers || Library Functions GK Questions and Answers || Library Functions GK MCQ Questions || Library Functions Multiple Choice Questions and Answers || Library Functions GK || GK on Library Functions || C Programming Questions and Answers || C Programming MCQ Questions and Answers || C Programming GK Questions and Answers || GK on C Programming