1. 编程学习网 > 编程教程 > C语言教程 > C语言100道经典题目87

C语言100道经典题目87

C 语言经典100例

题目:回答结果(结构体变量传递)。

程序分析:无。

实例

#include<stdio.h> struct student{ int x; char c; } a; int main(){ a.x=3; a.c='a'; f(a); printf("%d,%c",a.x,a.c); }f(struct student b){ b.x=20; b.c='y'; }

输出结果为:

3,a

本文由IT教学网整理发布,转载请注明出处:http://www.clang.cc//jiaocheng/cyuyan/1261.html

联系我们

在线咨询:点击这里给我发消息

咨询电话:400-998-2681

工作时间:7*24小时无休