c-basic/signed-to-unsigned.c

7 lines
200 B
C
Raw Normal View History

2022-11-24 21:04:54 +01:00
#include <stdio.h>
int main() {
signed int a = -1;
printf("%u\n",a); // no need to type cast. %u interprets given bytes of type unsigned int regardless of the datatype. truly low level
}