问题
Is there any way to give printf a size_t without either casting it first or generating a compiler warning? (I always compile with -Wall.)
回答1:
printf("%zu", sizeof(whatever));
来源:https://stackoverflow.com/questions/4150056/printf-for-size-t