C语言学习(23)

1 //输出字符串中第n个字符后的所有字符
2 #include<stdio.h>
3 int main(){
4     int n=10;
5     char *str="This is a book";
6     str=str+n;
7     printf("%s\n",str);
8     return 0;
9 }

猜你喜欢

转载自www.cnblogs.com/Tobi/p/9237828.html