c語言詢問 - 考試
By Odelette
at 2013-05-26T20:39
at 2013-05-26T20:39
Table of Contents
[課業] 國考課業相關問題,非歷屆考題的討論,如學理觀念的釐清。
#include<stdio.h>
int bar (int value) {
static int tmp =0;
tmp++; value++; return value + tmp;}
void main(){
int x=5; printf("%d\n", bar(x));
printf("%d\n", bar(bar(x)));}
value的變化 5,5,8,12
輸出 5,8,12
請問有人明白呢?
100年地特統計組 資料處理科
--
Tags:
考試
All Comments
By Enid
at 2013-05-30T03:54
at 2013-05-30T03:54
By Gary
at 2013-06-01T03:09
at 2013-06-01T03:09
By Susan
at 2013-06-01T15:27
at 2013-06-01T15:27
By Elizabeth
at 2013-06-04T20:48
at 2013-06-04T20:48
By Susan
at 2013-06-07T23:06
at 2013-06-07T23:06
By Cara
at 2013-06-12T08:04
at 2013-06-12T08:04
By Elvira
at 2013-06-12T10:02
at 2013-06-12T10:02
By Kama
at 2013-06-17T06:10
at 2013-06-17T06:10
By Elvira
at 2013-06-20T04:50
at 2013-06-20T04:50
By Zanna
at 2013-06-23T22:31
at 2013-06-23T22:31
Related Posts
英文的相關國考
By Odelette
at 2013-05-26T19:03
at 2013-05-26T19:03
行政學哪念的完阿...
By Kristin
at 2013-05-26T17:54
at 2013-05-26T17:54
葵花寶典與經典深論
By Anonymous
at 2013-05-26T17:05
at 2013-05-26T17:05
物理
By Zenobia
at 2013-05-26T16:38
at 2013-05-26T16:38
物理
By Charlie
at 2013-05-26T16:17
at 2013-05-26T16:17