计算机专业面试题汇总

上传人:c** 文档编号:290687109 上传时间:2022-05-10 格式:DOCX 页数:2 大小:15.84KB
返回 下载 相关 举报
计算机专业面试题汇总_第1页
第1页 / 共2页
计算机专业面试题汇总_第2页
第2页 / 共2页
亲,该文档总共2页,全部预览完了,如果喜欢就下载吧!
资源描述

《计算机专业面试题汇总》由会员分享,可在线阅读,更多相关《计算机专业面试题汇总(2页珍藏版)》请在金锄头文库上搜索。

1、本文格式为Word版,下载可任意编辑计算机专业面试题汇总 计算机专业面试题汇总 1 . 用预处理指令#define 声明一个常数,用以说明1年中有多少秒(疏忽闰年问题) #define SECONDS_PER_YEAR (60 * 60 * 24 * 365)UL 2. 嵌入式系统中经常要用到无限循环,你怎么样用C编写死循环呢?while(1)或者for(;) 3. 用变量a给出下面的定义 a) 一个整型数(An integer) b)一个指向整型数的指针( A pointer to aninteger) c)一个指向指针的的指针,它指向的指针是指向一个整型数( Apointer to a p

2、ointer to an integer) d)一个有10个整型数的数组( An array of 10integers) e) 一个有10个指针的数组,该指针是指向一个整型数的。(An array of 10 pointersto integers) f) 一个指向有10个整型数数组的指针( A pointer to an arrayof 10 integers) g) 一个指向函数的指针,该函数有一个整型参数并返回一个整型数(A pointer to a functionthat takes an integer as an argument and returns an integer)

3、 h) 一个有10个指针的数组,该指针指向一个函数,该函数有一个整型参数并返回一个整型数( An array of tenpointers to functions that take an integer argument and return an integer ) 答案是: a) int a; / An integer b) int *a; / A pointer to an integer c) int *a; / A pointer to a pointer to an integer d) int a10; / An array of 10 integers e) int *a1

4、0; / An array of 10 pointers to integers f) int (*a)10; / A pointer to an array of 10 integers g) int (*a)(int); / A pointer to a function a that takes an integerargument and returns an integer h) int (*a10)(int); / An array of 10 pointers to functions that take aninteger argument and return an integer 4.关键字static的作用是什么? 这个简朴的问题很少有人能回复完全。在C语言中,关键字static有三个明显的作用: 1)在函数体,一个被声明为静态的变量在这一函数被调用过程中维持其值不变。 2

展开阅读全文
相关资源
相关搜索

当前位置:首页 > 大杂烩/其它

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号