Multiple choice technology programming languages

23.) Is it possible to process return value of system()?

  1. a) Yes

  2. b) No

  3. c)

  4. d)

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

The system() function in C/C++ executes a shell command and returns an implementation-defined value that can be processed. Typically, it returns the exit status of the command (or 0 on success, -1 if fork fails, or another value if the shell could not be executed). Programmers routinely check this return value to determine if the command succeeded or failed, making it processable.