retour code

Can anyone explain me on the gcd program how to determine the exit status?
closed account (Dy7SLyTq)
c/c++:
#include <cstdlib>
int status = system("./gcd");

python
from os import system
status = system("./gcd")

i cant remember how to do it with shell script, never needed to do it in java, cant do it in web based, and never learned ruby so those are the only ways i know of (well the easiest way at least)
$?
Topic archived. No new replies allowed.