Unix

1:

 Let x.c be a C source code. The command cc x.c > y

A. is equivalent to the command cc x.c;mv a.out y
B. is equivalent to the command cc -o y x.c
C. serves no purpose
D. None of the above
 

Answer : C

Explanation :
The redirection symbol ›, puts everything that will otherwise
be displayed in the screen,

to the named file (y here). If x.c is syntactically correct, then the command cc x.c, silently creates a.out,
but what comes to the screen is nothing (other than the next prompt). So, y will be empty.

Write your comments here:


Report Error
 

Option: A

Explanation : Explanation will come here. Explanation will come here. Explanation will come here. Explanation will come here. Explanation will come here.