C语言字符串反输出(指针)
#include “stdio.h”
#include “stdlib.h”
#include “string.h”
void main()
{
char str[]=“hello,world”;//char str=“hello,world”;
chardest=NULL;
char*s,*d;
int len=strlen(str);
s=&str[len-1]; //指向最后一字符,...
转载
2019-07-09 11:22:35 ·
676 阅读 ·
0 评论