I am using Windows-11, 64-bit, and Dev-C++ (Bloodshed v5.11); the following is the simple code snippet:-
#include<stdio.h>
int main()
{
return -1;
}
I am getting the following output in the console:-
Process exited after 0.2015 seconds with return value 4294967295 Press any key to continue . . .
In the output, I do recognize that 4294967295 (2^32 - 1) is the max value of the unsigned 4-byte integer, but I cannot understand why this value is returned instead of "-1".