41. Which of the following macro extracts an argument from the variable argument list (ie ellipsis) and advance the pointer to the next argument?
42. calloc() initialize memory with all bits set to zero.
43. Which of the following snippet will effectively generate random numbers?
44. The statement prog < infile causes . . . . . . . .
45. What is the use of getchar()?
46. What will be the output of the following C code?
#include <stdio.h>
#include <stdarg.h>
int f(...);
int main()
{
char c = 97;
f(c);
return 0;
}
int f(...)
{
va_list li;
char c = va_arg(li, char);
printf("%c\n", c);
}
#include <stdio.h>
#include <stdarg.h>
int f(...);
int main()
{
char c = 97;
f(c);
return 0;
}
int f(...)
{
va_list li;
char c = va_arg(li, char);
printf("%c\n", c);
}
47. Which of the following data-types are promoted when used as a parameter for an ellipsis?
48. What is the value of EOF?
49. Which of these is a correct way to generate numbers between 0 to 1(inclusive) randomly?
50. log(x) function defined in math.h header file is . . . . . . . .
Read More Section(File Input Output)
Each Section contains maximum 100 MCQs question on File Input Output. To get more questions visit other sections.