c语言gets函数的使用需要声明了,可以使用scanf(“%s”,&a)这样;

c语言gets函数的使用需要声明了,可以使用scanf(“%s”,a)这样;

```#include<stdio.h>
char *gets (char *str);//声明
int main()
{
    char c[20];
    gets(c);
    
    puts(c);
    return 0;
}
全部评论

相关推荐

快刀斩offer:干测试,项目组就我一个测试,准备在职考研跑路了
点赞 评论 收藏
分享
牛至超人:我将凌晨两点给你打电话
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务