0188-multi_string.c (230B)
1 #define STR(x) #x 2 #define RES "This is a string!" 3 4 int 5 main() 6 { 7 char str1[] = STR(This is a string!); 8 char str2[] = RES; 9 int i; 10 11 for (i = 0; str1[i]; i++) { 12 if (str1[i] != str2[i]) 13 break; 14 } 15 16 return str1[i] - str2[i]; 17 }