int main(){ return -1; }
I compiled the above c program with gcc. To find the return value of the program I used echo $?. Output of echo $? was 255.Currently i am using terminator
how can i get negative values.
int main(){ return -1; }
I compiled the above c program with gcc. To find the return value of the program I used echo $?. Output of echo $? was 255.Currently i am using terminator
how can i get negative values.
The return code of a process is stored in a single unsigned byte.
You can't do that.
That is technically the return you wrote. The unsigned value of a byte with the signed value of -1 is 255.