c语言中的链式访问

来源:互联网 发布:windos nodejs 80端口 编辑:程序博客网 时间:2024/05/18 19:38

#include"stdio.h"
#include"stdlib.h"
#include"string.h"

int main()

{
    char arr1[20] = {0};
    strcpy(arr1, "hello");//把"hello"的值复制到数组arr1中去
    printf("%d\n", strlen(arr1));
    system("pause");
    return 0;
}

原创粉丝点击