Page 1 of 1

What will the following C code do on compilation?

Posted: Wed Jul 13, 2022 7:56 pm
by answerhappygod
void main ()
{
char com[50];
strcpy( com, "dir" );
system(com);
}
a) error
b) lists down all the files and directories in the current directory under windows machine
c) terminates the calling process immediately
d) calls specified function and terminates it at the end of the program