Pham Quỳnh Anh
New member
What will the following C code do on compilation?
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
Code:
void main ()
{
char com[50];
strcpy( com, "dir" );
system(com);
}
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