MUstar

IoT C언어 0522 - 8-7

May 22nd, 2017
75
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <stdio.h>
  2. #include <string.h>
  3.  
  4. int main(void)
  5. {
  6.     char str1[80] = "cat";
  7.     char str2[80];
  8.  
  9.     strcpy(str1, "tiger");
  10.     strcpy(str2, str1);
  11.     printf("%s %s\n",str1,str2);
  12.  
  13.     return 0;
  14. }
RAW Paste Data