Return value of main () in windows

On Linux, the return value of the main function is stored in $ ?, and can be shown with echo $ ?. Is there something equivalent on Windows?

+3
source share
1 answer
echo %ERRORLEVEL%
+7
source

Source: https://habr.com/ru/post/1737187/


All Articles