00001 void f() { 00002 const char s1[] = ""; 00003 const char s2[] = "Hello, " "World!\n"; 00004 const char s3[] = "'?"; 00005 const char s4[] = "\'\"\?\\\a\b\f\n\r\t\v"; 00006 const char s5[] = "\0\1\10\177\000\077"; 00007 const char s6[] = "\x0\00\xab\xcd\xef\xAB\xCD\xEF\x0aB"; 00008 00009 const char us1[] = "\u0024\u0040\u0060\u00A0\uD7FF\uE000"; 00010 const char us2[] = "\U00000024\U00000040\U00000060\U000000A0\U0000D7FF\U0000E000"; 00011 00012 } 00013 00014 #include <stdio.h> 00015 00016 const char s1[] = "sizeof-str: %d\n"; 00017 const char s2[] = "Hello, World!\n"; 00018 00019 int main() 00020 { 00021 return printf(s1, sizeof(s2)); 00022 }