概述
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
int main()
{
char a[]="12345";
char b[6]="abcde";
char c[4]={0};
printf("---------------------------NO \0------------------------------------n");
printf("c:%sn",c);
strncpy(c,b,4);
printf("c:%sn",c);
printf("C[3]%cn",c[3]);
printf("strlen%dn",strlen(c));
printf("---------------------------have \0------------------------------------n");
c[3]='