size_t n = 100; printf("n=%zd\n", n);Full Example:
#include <stdio.h> struct MyStruct { int a; int b; int c; }; int main() { printf("sizeof MyStruct=%zd\n", sizeof(MyStruct)); }Output:
sizeof MyStruct=12
size_t n = 100; printf("n=%zd\n", n);Full Example:
#include <stdio.h> struct MyStruct { int a; int b; int c; }; int main() { printf("sizeof MyStruct=%zd\n", sizeof(MyStruct)); }Output:
sizeof MyStruct=12