2024年3月29日發(作者:研學機構)

The Questions for Developing Applicants
Plea note: The questions with asterisk (*) can not be empty.
Describe general experience with:
1. LAN's, WAN.
2. Unix, Windows
3. Programming Languages.
4.
Device Driver
General questions:
1. Describe an experience you feel proud of in programming, such as creatively resolving a programming
(coding, algorithms, structure or others)problem you encountered in the past.
2. What's your biggest project? What a role did you played in it?
3. What's difference between dealing with an English string and a Chine String?
4. Do you know about GB code, Big5 code, Unicode? Would you plea give me your understanding of
their relationship and difference?
5. Now I have an English application and its source code, such as a word processor. What would you do
to make it work correctly in Chine environment?
Jiuzhouanhua Confidential 1
The Questions for Developing Applicants
6. If you're free to choo a job, what would you like to do: marketing, tester engineer, software
programmer, project manager, or other? And why? Will you accept a different assignment other than the
job you like, such as tester engineer position?
C QUESTIONS:
1.* Explain the difference between "call by value" and "call by reference" in a programming language.
How do the apply to the C language?
call by value :
調用時子程序得到的是參數值的副本,子程序中對形參的改變其實只是影響了該副本的值,但
在返回主程序后該副本會被丟棄,因此在主程序中按值調用的參數仍保持原來的值。
call by reference :
調用時子程序得到的是實際參數的內存地址,因此在子程序中改變形參的值時,實際會導致對
該形參所對應的地址處的內存數據的變化,即直接修改的是主程序中的變量的值,返回主程序
后該參數所對應的變量值會產生變化。
2.* Explain how C pointers work. What are they really? How can they be ud? What are the most
uful/vital ways to u them?
變量的地址稱為變量的指針,即指針是一個內存單元的地址。
指針的基本形態有以下幾種:
(1)int *p; //p為指向整型數據的指針變量
(2)int *p[n]; //定義指針數組p
(3)int *p(); //p為指針函數,返回一個指向整型數據的指針
(4)int (*p)(); //p為指向函數的指針,該函數返回一個整型值
(5)int (*p)[n] //p為指向含有n個元素的一維數組的指針變量
(6)int **p; //p為指向指針的指針,被指向的指針指向一個整型數據
(7)int(**p)[n] //p是一個指向另一個指針變量的指針變量,被指向的指針變量指向一個含
有n個整型數據的一維數組
(8)int *p()[n] //p為返回整型指針數組(首地址)的函數
(9)int (*p[])() //p為指向返回整型數值函數的指針數組
指針的使用:
(1)指針和數組
對于數組a[i]表示數組a的第i+1個變量,a是數組名,表示該數組的首地址。即a與
&a[0]等價,而p=a;通過p來訪問數組元素。
(a)p,a,與&a[0]它們之間是等價的,都表示數組a的首地址
(b)int *p=a;*p=1;為所指向的存儲單元賦值1
(c)int *p=a;表達式p+1為指向p的下一個存儲單元
(d)表達式p+i為指向p后第i個元素。a[i],*(a+i),*(p+i)都表示數組a的第i個元素
(2)指針與函數參數的選擇
如果用數組名作為函數參數,實參數組名代表數組首地址,而形參是用來接收從實參
傳遞過來的首地址,因此,形參應該是一個指針變量,因為只有指針變量才能存放地址。
(3)指針與鏈表
Jiuzhouanhua Confidential 2
本文發布于:2024-03-29 06:01:58,感謝您對本站的認可!
本文鏈接:http://m.newhan.cn/zhishi/a/1711663318301183.html
版權聲明:本站內容均來自互聯網,僅供演示用,請勿用于商業和其他非法用途。如果侵犯了您的權益請與我們聯系,我們將在24小時內刪除。
本文word下載地址:程序員面試題目.doc
本文 PDF 下載地址:程序員面試題目.pdf
| 留言與評論(共有 0 條評論) |