Unix

1:

The command cc x.c && a.out

A.

is equivalent to cc x.c ; a . out

B.

means execute a . out only when x . c compiles successfully

C.

means execute a . out only if cc x .c retuns a value 0 to the system

D.

Both (b) & (c)

 

Answer : D

Explanation :

cc x . c ; a . out - means execute the command cc x . c and then a . out. If x . c fails to compile successfully, then if there is any executable file a . out, it will he executed. So, execution of a . out, has nothing to do with the outcome of cc x . c. In the case of cc x.c && a . out , a . out will be executed only if x . c compiles successfully (i.e. re-turns 0 as the exit status).

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.