ExamVeda
Login
Home
61
Which of the following statements about stdout and stderr are true?
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
62
What is the meaning of the following C statement?
printf(“%10s”, state);
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
63
What will be the output of the following C code?
#include <stdio.h>
int main()
{
    short int i;
    scanf("%*d", &i);
    printf("%hd", i);
    return 0;
}
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
64
On freeing a dynamic memory, if the pointer value is not modified, then the pointer points to.
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
65
void * malloc(size_t n) returns?
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
66
What does the following segment of C code do?
fprintf(fp, "Copying!");
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
67
Which of the following represents the function for scanf()?
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
68
Which of the following can be used for random number generation?
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
69
What will be the output of the following C code?
#include <stdio.h>
int main()
{
    char *s = "myworld";
    int i = 9;
    printf("%*s", i, s);
}
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
70
What will be the output of the following C statement?
fprintf(stderr, "error: could not open filen");
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board