糖尿病康复,内容丰富有趣,生活中的好帮手!
糖尿病康复 > struct ty { int data;;char c;}; main(){struct ty a

struct ty { int data;;char c;}; main(){struct ty a

时间:2024-07-01 01:26:54

相关推荐

struct ty { int data;;char c;}; main(){struct ty a

问题补充:

struct ty { int data;;char c;}; main(){struct ty a={30.x}; fun(a); printf(%d%c,a.data,a.c):}fun(struct ty b) { b.data=20;b.c=y}

答案:

打印的是30x,因为调用函数f并无改变a的值,只是改变形参b的值,函数结束后b被销毁

如果觉得《struct ty { int data;;char c;}; main(){struct ty a》对你有帮助,请点赞、收藏,并留下你的观点哦!

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。