![]() ![]() ![]() | strings/long-strings-3.c - Implicit konkatenering af nabo tekststreng konstanter. | Lektion 10 - slide 22 : 51 Program 3 |
#include <stdio.h> #include <string.h> int main(void) { char long_string_1[] = "This is a long string that will cause layout problem in our program. " "It would be much nicer if we somehow are able to break this string into smaller pieces. " "This can be done in several different ways in C."; printf("%s: OF LENGTH: %d\n", long_string_1, strlen(long_string_1)); return 0; }