題目:回答結果(結構體變數傳遞),
程式分析:無,
實體:
1 #include<stdio.h> 2 3 struct student 4 { 5 int x; 6 char c; 7 } a; 8 9 int main() 10 { 11 a.x=3; 12 a.c='a'; 13 f(a); 14 printf("%d,%c",a.x,a.c); 15 } 16 f(struct student b) 17 { 18 b.x=20; 19 b.c='y'; 20 }
輸出結果為:
3,a
感謝你的閱讀,請用心感悟!希望可以幫到愛學習的你!!分享也是一種快樂!!!請接力,,,
點擊查看原文,謝謝!
轉載請註明出處,本文鏈接:https://www.uj5u.com/houduan/1864.html
標籤:C
上一篇:C 實戰練習題目86
下一篇:C 實戰練習題目88
