关于字符串有关的指针
摘要:
#include <stdio.h> #include <stdlib.h> int main() { char* s=malloc(sizeof(char)*100); scanf("%s",s); //指针变量就相当于地址 printf("%s",s); //打印的是字符串s return 0; 阅读全文
posted @ 2023-10-31 14:25 四马路弗洛伊德 阅读(11) 评论(0) 推荐(0)
posted @ 2023-10-31 14:25 四马路弗洛伊德 阅读(11) 评论(0) 推荐(0)