柠檬试题库
search
首页
计算机
公务员
驾照
关于
share
有以下程序 #include
#include
void fun ( char *s ) { char a[10]; strcpy( a, "STRING" ); s = a; } main() { char *p="PROGRAM"; fun( p ); printf("%s\n",p); } 程序运行后的输出结果是(此处□代表空格)
A.STRING
B.STRING□□□□
C.STRING□□□
D.PROGRAM
热度🔥591
参考答案:D
解析:打开微信小程序查看本题解析
点击打开小程序查看解析
content_copy
扫码免费计算机二级刷题
2024年计算机等级考试题库
推荐
有以下定义和语句 struct workers { int num; char name[20]; char c; struct { int day; int month; int year;} s; }; struct workers w,*pw; pw=&w; 能给w中year成员赋1980的语句是
下面属于黑盒测试方法的是
世界上公认的第一台电子计算机诞生在( )。
标签
二级C语言
string
fun
char
指针