81. What will be the output of the following C code?
#include <stdio.h>
int main()
{
char i = '9';
if (isdigit(i))
printf("digit\n");
else
printf("not digit\n");
return 0;
}
#include <stdio.h>
int main()
{
char i = '9';
if (isdigit(i))
printf("digit\n");
else
printf("not digit\n");
return 0;
}
82. What will be the output of the following C code?
#include <stdio.h>
#include <stdlib.h>
int main()
{
FILE *fp = stdout;
int n;
fprintf(fp, "%d", 45);
}
#include <stdio.h>
#include <stdlib.h>
int main()
{
FILE *fp = stdout;
int n;
fprintf(fp, "%d", 45);
}
83. Which of the following is the correct declaration for ungetc?
84. What is the purpose of sprintf?
85. What will be the output of the following C code?
#include <stdio.h>
#include <math.h>
int main()
{
int i = 10;
printf("%f\n", log10(i));
return 0;
}
#include <stdio.h>
#include <math.h>
int main()
{
int i = 10;
printf("%f\n", log10(i));
return 0;
}
86. Memory allocation using malloc() is done in . . . . . . . .
87. Which is true about isaplpha(c), where c is an int that can be represented as an unsigned?
char or EOF.isalpha(c) returns
char or EOF.isalpha(c) returns
88. For the function call time(), what type of parameter is accepted?
89. fwrite() can be used only with files that are opened in binary mode.
90. What is meant by 'a' in the following C operation?
fp = fopen("Random.txt", "a");
fp = fopen("Random.txt", "a");
Read More Section(File Input Output)
Each Section contains maximum 100 MCQs question on File Input Output. To get more questions visit other sections.