Logo

Programming-Idioms

History of Idiom 48 > diff from v29 to v30

Edit summary for version 30 by programming-idioms.org:
[C] Several lines of text

Version 29

2017-05-27, 19:35:38

Version 30

2017-05-27, 22:31:18

Idiom #48 Multi-line string literal

Assign to variable s a string literal consisting in several lines of text

Idiom #48 Multi-line string literal

Assign to variable s a string literal consisting in several lines of text

Extra Keywords
multiline raw
Extra Keywords
multiline raw
Code
char *s = "Huey"
          "Dewey"
          "Louie";
Code
char *s = "Huey\n"
          "Dewey\n"
          "Louie";