C type sizes

type bytes min max signed int 4 -2147483648 2147483647 unsigned int 4 0 4294967295 signed char 1 -128 127 char 1 -128 127 unsigned char 1 0 255 signed short int 2 -32768 32767 unsigned short int 2 0 65535 signed long int 8 -9223372036854775808 9223372036854775807 unsigned long int 8 0 18446744073709551615

C: Power of (^) & hex to dec converter

I have spent almost 2 evenings trying to create a C program to convert Hex (0x) into a decimal number. After re-writing it 3 times, I had figured out the logical structure. A previous little program I wrote returned the total decimal value of a provided number of bits. For that program, I was able… Continue reading C: Power of (^) & hex to dec converter