You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
261 B
C

#include <stdio.h>
typedef unsigned char byte;
byte a = 0x41; // A
byte b = 0x61; // a
int main(int argc, char const *argv[])
{
byte c = b - a;
printf("The value of a - b is %d\n", c);
printf("The hex value of c is: 0x%02x\n", c);
return 0;
}