51. Choose the correct description for control string %-+7.2f.
52. What will be the output of the following C code?
#include <stdio.h>
#include <ctype.h>
int main()
{
char c = 't';
printf("is :%c\n", tolower('A'));
}
#include <stdio.h>
#include <ctype.h>
int main()
{
char c = 't';
printf("is :%c\n", tolower('A'));
}
53. ungetc() is used . . . . . . . .
54. Which mathematical function among the following does NOT require int parameters?
55. Which pre-defined function returns a pointer to the last occurence of a character in a string?
56. Select the correct value of i from given options i=scanf("%d %d", &a, &b);
57. What error will generate if the read and write parameters are not separated by commas?
58. gets() and puts() operate on . . . . . . . .
59. What will be the output of the following C code?
#include <stdio.h>
int main()
{
char str[11] = "hello";
char *str1 = "world";
strcat(str, str1);
printf("%s %d", str, str[10]);
}
#include <stdio.h>
int main()
{
char str[11] = "hello";
char *str1 = "world";
strcat(str, str1);
printf("%s %d", str, str[10]);
}
60. Only . . . . . . . . character of pushback is guaranteed per file when ungetc is used.
Read More Section(File Input Output)
Each Section contains maximum 100 MCQs question on File Input Output. To get more questions visit other sections.