- char *其实就是char[length]的首元素地址 实验环境:centos7下qt5.11 中文char类型占3个字节
char[length]="特别车队"其实等价于char *mywords="特别车队"
#include<stdio.h> #include<stdlib.h> #include<string.h> int main() { char * words=" 特别车队狮哥猴警官老狒 "; int i,j=0; j=strlen(words)-1; while(isspace(words[i]) && words[i]!='