61. Which one of the following is correct syntax for opening a file.
62. What will be the output of the following C code (when 4 and 5 are entered)?
#include <stdio.h>
void main()
{
int m, n;
printf("enter a number");
scanf("%d", &n);
scanf("%d", &m);
printf("%d\t%d\n", n, m);
}
#include <stdio.h>
void main()
{
int m, n;
printf("enter a number");
scanf("%d", &n);
scanf("%d", &m);
printf("%d\t%d\n", n, m);
}63. What will be the output of the following C code?
#include <stdio.h>
int main()
{
int i = 10, j = 3;
printf("%d %d %d", i, j);
}
#include <stdio.h>
int main()
{
int i = 10, j = 3;
printf("%d %d %d", i, j);
}64. What will cos(x) return?
65. What will be the output of the following C code?
#include <stdio.h>
void main()
{
int n;
scanf("%d", n);
printf("%d", n);
}
#include <stdio.h>
void main()
{
int n;
scanf("%d", n);
printf("%d", n);
}66. What will be the output of the following C code?
#include <stdio.h>
int main()
{
short int i;
scanf("%h*d", &i);
printf("%hd", i);
return 0;
}
#include <stdio.h>
int main()
{
short int i;
scanf("%h*d", &i);
printf("%hd", i);
return 0;
}67. Choose the right statement for fscanf() and scanf()
68. What is the function of the mode ' w+'?
69. gets() does the following when it reads from stdin.
70. What is the qualifying input for the type specifier G?
Read More Section(File Input Output)
Each Section contains maximum 100 MCQs question on File Input Output. To get more questions visit other sections.
