Interessante Idee, aber ... was sagt der Standard dazu?
1 | The behavior is undefined in the following circumstances:
|
2 | ...
|
3 | -A program in a hosted environment does not define a function named main using one of the specified forms (5.1.2.2.1).
|
4 | ...
|
Es ist also nicht nur abhängig von der konkreten CPU, es ist auch klar
UB.
1 | "I’m guessing all that will happen when my coworker turns in an assignment looking like this is they will take off points for bad coding style and say nothing else about it."
|
Oder es gibt 0 Punkte, weil das Program nicht funktioniert.