71. Which among the following is the odd one out?
72. The syntax of the scanf() is scanf("control string ", arg1,arg2,arg3,....,argn); the prototype of control string is
73. Output justification such as decimal point, numerical sign, trailing zeros or octal are specified.
74. function fabs defined math.h header file takes the argument of type integer.
75. What will be the output of the following C code considering user typed jkl?
#include <stdio.h>
int main()
{
char n[20];
fgets(n, 19, stdin);
ungetc(n[0], stdin);
printf("%s\n", n);
return 0;
}
#include <stdio.h>
int main()
{
char n[20];
fgets(n, 19, stdin);
ungetc(n[0], stdin);
printf("%s\n", n);
return 0;
}
76. Which of the following is NOT a delimiter for an input in scanf?
77. Which is true about isupper(c), where c is an int that can be represented as an unsigned?
char or EOF.isupper(c) returns
char or EOF.isupper(c) returns
78. What will be the output of the following C code?
#include <stdio.h>
#include <math.h>
void main()
{
int k = fabs(-87);
printf("%d\n", k);
}
#include <stdio.h>
#include <math.h>
void main()
{
int k = fabs(-87);
printf("%d\n", k);
}
79. gets() function checks overflow run.
80. In linux, apart from including math header file, the program is successfully executed by which of the following?
Read More Section(File Input Output)
Each Section contains maximum 100 MCQs question on File Input Output. To get more questions visit other sections.