Computer Science Fundamentals Software Engineering Objective
Mar 08, 2013

The command cc x.c && a.out

Choose the correct answer:
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) b & c both
Detailed 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).

Discussion (0)

No comments yet. Be the first to share your thoughts!

Share Your Thoughts
Feedback