$? is the exit status of the last function. 0 is a common exit code to denote the program exited without any issues.
$? is the exit status of the last function. 0 is a common exit code to denote the program exited without any issues.