61. The following C expression can be substituted for?
if (isalpha(c) && isdigit(c))
if (isalpha(c) && isdigit(c))62. What will the given code result is
printf("\n you are\"awesome \" ");
printf("\n you are\"awesome \" ");63. What will be the output of the following C code?
#include <stdio.h>
int main()
{
char *str = "hello, world\n";
printf("%d", strlen(str));
}
#include <stdio.h>
int main()
{
char *str = "hello, world\n";
printf("%d", strlen(str));
}64. Which is not true about function tolower?
65. putchar(c) function/macro always outputs character c to the . . . . . . . .
66. What is the meaning of the following C statement?
scanf("%[^\n]s", ch);
scanf("%[^\n]s", ch);67. What is the return type of rand() function?
68. What will be the output of the following C code?
#include <stdio.h>
int main()
{
FILE *fp = stdout;
int n;
fprintf(fp, "%d ", 45);
fprintf(stderr, "%d ", 65);
return 0;
}
#include <stdio.h>
int main()
{
FILE *fp = stdout;
int n;
fprintf(fp, "%d ", 45);
fprintf(stderr, "%d ", 65);
return 0;
}69. What will be the output of the following C code?
#include <stdio.h>
int main()
{
printf("%d\n", srand(9000));
return 0;
}
#include <stdio.h>
int main()
{
printf("%d\n", srand(9000));
return 0;
}70. What are the Properties of the first argument of a printf() functions?
Read More Section(File Input Output)
Each Section contains maximum 100 MCQs question on File Input Output. To get more questions visit other sections.
