Page 1 of 1

What will be the output of the following C code if following commands are used to run and if myfile does not exist?

Posted: Wed Jul 13, 2022 7:54 pm
by answerhappygod
gcc -o test test.c ./test > myfile  #include <stdio.h> int main(int argc, char **argv) { char c = 'd'; putchar(c); printf(" %d\n", argc); }
a) d 2 in myfile
b) d 1 in myfile
c) Depends on the system
d) Depends on the standard