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,感谢您对本站的认可!
本文链接:https://www.wtabcd.cn/zhishi/a/1711663318301183.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文word下载地址:程序员面试题目.doc
本文 PDF 下载地址:程序员面试题目.pdf
留言与评论(共有 0 条评论) |