I wrote the most basic main func:
int main()
{
cout << "just to see it works";
return 1234;
}
afterwords I built the file and runned the file:
gcc <cpp fileName>.cc -lstdc++ -o main
./main
afterwords I ran:
echo $?
and my return value was 210 when I returned 999 instead of 1234 I got around 231 and when I returned numbers from around 0 to 250 I received the same number as aspected.
Why when returning high numbers I receive numbers around 210?
P.S. I was unable to find questions close enough to this one. Also, I didn't find in the manual of echo a good explanation of echo $? or a manual for echo $?