![]() ![]() ![]() | strings/long-strings-2.c - Lange tekststrenge med backslashes - Backslash og EOL tegn ignoeres. | Lektion 10 - slide 22 : 51 Program 2 |
#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; }