ExamVeda
Login
Home
11
The syntax of fgets is char *fgets(char *line, int maxline, FILE *fp). Which is true for fgets?
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board
12
What does the following C code snippet mean?
char *gets(char *s)
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
13
Which functions is declared in ?
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
14
What does scanf() function return?
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
15
What will be the output of the following C code?
#include <stdio.h>
int main()
{
    FILE *fp = stdout;
    stderr = fp;
    fprintf(stderr, "%s", "hello");
}
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
16
What is the use of symbol * in the control string as shown [=%[*][width] [modifiers] type=]?
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
17
Which of the following function can be used to terminate the main function from another function safely?
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
18
For a typical program, the input is taken using . . . . . . . .
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board
19
What is the return value of putchar()?
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board
20
What will be the output of the following C code?
#include <stdio.h>
int f(char chr, ...);
int main()
{
    char c = 97;
    f(c);
    return 0;
}
int f(char c, ...)
{
    printf("%c\n", c);
}
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board