當前位置:學識都>好好學習>考研>

索尼愛立信筆試題

學識都 人氣:3.15W

索尼愛立信筆試題

一、用變量a定義以下類型:(這道題目是中英文描述,我爲了抄的簡單就寫英文了

不保證全準確,因爲我是匆匆用簡寫記在草稿紙上的。)

a) an integer

b) a pointer to an integer

c) a pointer to a pointer to an integer

d) an array of 10 integers

e) an array of 10 pointers to integers

f) a pointer to an array of 10 integers

g) a pointer to a function that makes an integer as an argument and returns

an integer

h) an array of 10 pointers to functions that makes an integer as an argument

and returns an integer

二、關鍵字static的作用是什麼?

三、這段代碼有什麼問題?

strunt S_A{

int a[10];

};

void f()

{

int i;

strunt S_A *s_ptr;

for (i=0,i<10,i++)

s_ptr->a[i]=i;

}