I am trying to figure out how many bytes are in an unsigned long long int on my desktop computer. But I keep getting warnings:
warning: format ‘%d’ expects type ‘int’, but argument 2 has type ‘long unsigned int’
Any idea how to fix the warnings?Code:#include <stdio.h> int main(void) { unsigned char unit_id[] = { 0x2B, 0xC, 0x6B, 0x54}; // 8-bit unsigned long long int unit_id_val; int i; printf("the size of unsigned long long int %d", sizeof(unit_id_val ) ); return 0; }