Computer Science Fundamentals Operating Systems Objective
Mar 11, 2013

Consider the following command that invokes the executable file a.out, with the following command line arguments a .out God loves you

argv( [1][2] )corresponds to the character

Choose the correct answer:
A) e
B) o
C) d
D) y
Detailed Explanation
Use `process.argv` array. First two elements are node path and script path. Actual arguments start from index 2. Example: `process.argv[2]` for first argument. Libraries like `yargs` provide better parsing.
Discussion (0)

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

Share Your Thoughts
Feedback