1.

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

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

A. U in Newfile and 1 in screen
B. U in Newfile and 2 in screen
C. U 1 in Newfile
D. U 2 in Newfile
E. None of these
Answer» D. U 2 in Newfile


Discussion

No Comment Found

Related MCQs