boot2

Playing with the boostrap
git clone https://git.ryansepassi.com/git/boot2.git
Log | Files | Refs | README

085-string-concat.c (256B)


      1 /* Adjacent string-literal concatenation. CC.md §Lexical syntax: "a" "b" -> "ab". */
      2 
      3 int main(int argc, char **argv) {
      4     char *s = "hel" "lo";
      5     if (s[0] != 'h') return 1;
      6     if (s[4] != 'o') return 2;
      7     if (s[5] != 0)   return 3;
      8     return 0;
      9 }