-
What will be the output of the following C code if following commands are used to run and if Newfile does not exist?
gcc -o test test.c
./test > Newfile
#include <stdio.h>
int main(int argc, char **argv)
{
char ch = 'N';
putchar(ch);
printf(" %d\n", argc);
}
-
- Depends on the standard
- Depends on the system
- N 2 in Newfile
- N 1 in Newfile
- None of these
Correct Option: D
N 1 in Newfile