61. Which of the following statements about stdout and stderr are true?
62. What is the meaning of the following C statement?
printf(“%10s”, state);
printf(“%10s”, state);
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;
}
#include <stdio.h>
int main()
{
short int i;
scanf("%*d", &i);
printf("%hd", i);
return 0;
}
64. On freeing a dynamic memory, if the pointer value is not modified, then the pointer points to.
65. void * malloc(size_t n) returns?
66. What does the following segment of C code do?
fprintf(fp, "Copying!");
fprintf(fp, "Copying!");
67. Which of the following represents the function for scanf()?
68. Which of the following can be used for random number generation?
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);
}
#include <stdio.h>
int main()
{
char *s = "myworld";
int i = 9;
printf("%*s", i, s);
}
70. What will be the output of the following C statement?
fprintf(stderr, "error: could not open filen");
fprintf(stderr, "error: could not open filen");
Read More Section(File Input Output)
Each Section contains maximum 100 MCQs question on File Input Output. To get more questions visit other sections.