ExamVeda
Login
Home
41
What is the prototype of scanf function?
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
42
What will be the output of the following C code?
#include <stdio.h>
#include <math.h>
int main()
{
    int i = 90;
    printf("%f\n", sin(i));
    return 0;
}
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
43
Which type of files can't be opened using fopen()?
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board
44
What will be the output of the following C code?
#include <stdio.h>
int main()
{
    int i = 10, j = 3, k = 3;
    printf("%d %d ", i, j, k);
}
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
45
What will be the output of the following C function when EOF returns?
int fputs(char *line, FILE *fp)
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board
46
A conversion specification %7.4f means . . . . . . . .
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
47
puts() function adds newline character.
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
48
The . . . . . . . . function reads atmost one less than the number of characters specified by size from the given stream and it is stored in the string str.
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
49
What does tmpfile() returns when it could not create the file?
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
50
What will be the output of the following C code?
#include <stdio.h>
int main()
{
    int n;
    scanf("%d", &n);
    ungetc(n, stdin);
    scanf("%d", &n);
    printf("%d\n", n);
    return 0;
}
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board