51.
What will be the output of the following C code?
#include <stdio.h>
#include <stdlib.h>
int main()
{
    printf("%d\n", rand() % 1000);
    return 0;
}

53.
What will be the output of the following C code if following commands are used to run (considering myfile exists)?
gcc -otest test.c
./test > myfile

 #include <stdio.h>
int main(int argc, char **argv)
{
    char c = 'd';
    putchar(c);
    printf(" %d\n", argc);
}

58.
What will be the output of the following C code?
#include <stdio.h>
#include <stdarg.h>
int f(char c, ...);
int main()
{
    char c = 97, d = 98;
    f(c, d);
    return 0;
}
int f(char c, ...)
{
    va_list li;
    va_start(li, c);
    char d = va_arg(li, char);
    printf("%c\n", d);
    va_end(li);
}

59.
What does the following command line signify?
prog1|prog2

Read More Section(File Input Output)

Each Section contains maximum 100 MCQs question on File Input Output. To get more questions visit other sections.