文本描述
第一张:关于C/C++的题目
你如果看待在c程序中对复杂类型声明的情况,说说你对复杂类型声明的理解。
(1)struct { int x,int y}p1,p2;(2)struct point {int x, int y}p1,p2;(3)struct point {int x,int y};struct point p1,p2;(4)typedef struct point {int x,int y}point;struct point p1,p2; 请说明第四组中第一句话中两个“point”的含义,前三组可做参考回答思路。
写函数原型的题目
如果函数的实参是char a[5][6],函数名称是function1,该函数的形参该怎么写才能与实参相对应。
2 如果函数的实参是char *a[6],函数名称是function2,该函数的形参该怎么写才能与实参相对应。
3 如果函数的实参是char (*a)[7],函数名称是function3,该函数的形参该怎么写才能与实参相对应。
第二张关于linux c 英文选择题目:
1What file does init processes use at its control file?
A /etc/inittab B /etc/proc C /etc/init D /etc/instruct
2You need to have all the output from the executable myprog written to a text log named file1.out. This program must not send any output to the console. Which of the commands listed will accomplish this?
A myprog >file1.out 2>&1
B myprog >file1.out 1>&2
C myprog>file1.out 1>/dev/null
D myprog 1&2 >file1.out
3Which of the following best describes the order in which xwindow files are executed or read?
A startx->xinit->xinitrc->xclients
B xinit->startx->xclients->xlinitrc
C xinitrc->xclients->startx->xinit
D xclients->startx->xinitrc->xinit
4Which steps are necessary to compile and install a source code program ?choose the least amout possibe?
A Extract source
B edit makefile
C ./configure
D make
E make install
5Which of the falling is not a valid make command during a kernel recompile?
A make dep
B make clean
C make xconfig
D make modules
E make gzlilo
第三张 是linux中文简答题目:
1 Linux文件系统损坏之后,怎么检查和修复?
2 写出该函数的运行结果:void func (char *a)
{
printf(“%d”,sizeof(a));
printf(“%d”,strlen(a));
}
Int main()
{
ch