Exercise 1.2 Output a name and address in a single statement

#include<stdio.h>
int main(void)
{
    printf("My name is xiaomi5320\n\tMy address is www.cnblogs.com/xiaomi5320\n");

    return 0;
}

将1.1 换成一行输出。

 Question:

  // The compiler will automatically join strings together into
  // a single string when they immediately follow one another
  // so the three strings between the brackets below will
  // be assembled into one long string.

Original:

#include <stdio.h>

int main(void)
{
      printf("George Washington\n"
         "3200 George Washington Memorial Parkway\n"
         "Mount Vernon\nVirginia 22121\n");
  return 0;
}

 

posted @ 2014-12-13 18:26  稳稳稳稳稳稳  阅读(149)  评论(0编辑  收藏  举报