-
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);
}
-
- U in Newfile and 1 in screen
- U in Newfile and 2 in screen
- U 1 in Newfile
- U 2 in Newfile
- None of these
Correct Option: C
U 1 in Newfile