int main() {
// Reserve 20 bytes of memory for a string
char myString[20] = "Hello World!\0";
int memorySize = sizeof(myString);
int stringSize;
// Print the string and use %n to measure it
printf("%s%n\n", myString, &stringSize);
// Print the size of the string
printf("Memory size: %d\n", memorySize);
printf("String size: %d\n", stringSize);
return 0;
}