In some examples of int main() i have seen, there is always a return 0 in the end. When do you have to return a number different then zero and what number should this be? only 1? or any numer like 4,6,1000,139438493?? I am used to simpler languages like python and Im a bit comfused.
Depends on the operating system.
Traditionally 0 means "ok". Use -1 or 1, 2, 3 as error indicator. And check with your OS how to work with that result