String Literals in C

Refer to 6.4.5 String literals in C99 standard.

 

Sample code:

#include <stdio.h>

int main(int argc, const char *argv[]) {
  char val[] = "one" "two";
  printf("part1\n"
     "part2\n"); 
  printf("val: %s\n", val);
  return 0;
}
 

你可能感兴趣的:(String)