ExamVeda
Login
Home
71
What will be the output of the following C code?
#include <stdio.h>
int main()
{
    short int i;
    scanf("%hd", &i);
    printf("%hd", i);
    return 0;
}
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
72
fflush(NULL) flushes all . . . . . . . .
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
73
What will be the output of the following C code?
#include <stdio.h>
int main()
{
    FILE *fp = stdout;
    int n;
    fprintf(fp, "%d\n ", 45);
    fprintf(stderr, "%d ", 65);
    return 0;
}
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
74
What will fopen will return, if there is any error while opening a file?
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
75
Which of the following is the right declaration for fgets() inside the library?
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
76
What will be the output of the following C code?
#include <stdio.h>
int main()
{
    int i = 10, j = 3;
    printf("%d %d %d", i, j);
}
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
77
What will be the output of the following C code?
#include <stdio.h>
int main()
{
    char *n;
    scanf("%s", n);
    return 0;
}
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
78
Which of the following fopen() statements are illegal?
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board
79
The syntax of printf() function is printf("control string", variable list) ;what is the prototype of the control string?
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
80
What will be the output of the following C code?
#include <stdio.h>
int main()
{
    short int i;
    scanf("%*hd", &i);
    printf("%hd", i);
    return 0;
}
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board