C programming - Problems compiling with the %d format specifier
The code example in C which returns the sizeof() in bytes for data types fails to compile w/ %d format specifier. [ clang version 7.0.0; Target: aarch64--linux-android; Thread model: posix; using Termux ] Clang throws the following warning for each printf statement: -- format specifies type 'int' but the argument has type 'unsigned long' -- Using the %lu format specifier, as suggested in Clang's output, corrects the warnings thrown by the compiler. Has anyone experienced a similar issue? Helpful suggestions appreciated!