81. What will be the output of the following C code?
#include <stdio.h>
int main()
{
char *str = "hello, world";
char str1[15] = "hello wo 9";
strcpy(str, str1);
printf("%s", str1);
}
#include <stdio.h>
int main()
{
char *str = "hello, world";
char str1[15] = "hello wo 9";
strcpy(str, str1);
printf("%s", str1);
}82. What is the return value of getc()?
83. What does the C statement given below says?
scanf("%7s",ch);
scanf("%7s",ch);84. What action is carried out by scanf if a user enters any blank spaces, tabs, and newlines?
85. Which of the following will return a non-zero value when checked with isspace(c)?
86. Which is the correct way to generate numbers between minimum and maximum(inclusive)?
87. What will be the output of the following C code?
#include <stdio.h>
int main()
{
char str[10] = "hello";
char *str1 = "world";
strncat(str, str1, 9);
printf("%s", str);
}
#include <stdio.h>
int main()
{
char str[10] = "hello";
char *str1 = "world";
strncat(str, str1, 9);
printf("%s", str);
}88. What will be the value of var for the following C statement?
var = strcmp("Hello", "World");
var = strcmp("Hello", "World");89. If by mistake you specify more number of arguments, the excess arguments will . . . . . . . .
90. What is the purpose of va_end?
Read More Section(File Input Output)
Each Section contains maximum 100 MCQs question on File Input Output. To get more questions visit other sections.
