I have compiled and executed this code on macOS in Xcode 10.0 (clang: Apple LLVM version 10.0.0) and it's returning 255. On the other hand, on Windows in Visual Studio Community Edition v.15.8.6 it's returning -1. Can someone explain this behaviour on macOS? Code listed below.
int main() {
return -1;
}