Before I could compile that way, when I upgrade to Mojave I get that error. Does anyone know how to correct it?
$ gcc Factorial.c xcrun: error: invalid active developer path (/ Library / Developer / CommandLineTools), missing xcrun at: / Library / Developer / CommandLineTools / usr / bin / xcrun