#include // Function to check integer representation void checkIntegerRepresentation() { char testNum = (char)0b1111111; // Binary 1111111 is decimal 127 // Compare with 127 and -129 if (testNum == 127) { printf("The architecture uses sign magnitude integer representation.\n"); } else if (testNum == -129) { // Corrected to -129 for two's complement printf("The architecture uses two's complement integer representation.\n"); } else { printf("Unknown integer representation.\n"); } } int main() { checkIntegerRepresentation(); return 0; }