#include #include int main() { char str[10] = "Hello!"; char newStr[10]; int i; newStr[0] = 0; printf("%d %d\n", strlen(str), strlen(newStr)); for(i=0;i<=strlen(str);i++) { newStr[i] = str[i]; } /*newStr[strlen(str)] = 0;*/ /*strcpy(newStr, str);*/ printf("%s = %s \n\n",str,newStr); str[0] = 'Y'; printf("%s ?=? %s \n",str,newStr); return 0; }