- 61
- 0
- 约1.05万字
- 约 21页
- 2015-09-25 发布于重庆
- 举报
c语言高级面试题
整个测试遵循以下的约定:
??????? 假定在所有的程序中必须的头文件都已经被正确包含。
考虑如下的数据类型:
??????? char 为1个字节
??????? int 为4个字节
??????? long int 为4个字节
??????? float 为4个字节
??????? double 为个8字节
??????? long double 为 8个字节
??????? 指针为4个字节
?
?
1. Consider the following program:
#includesetjmp.h
static jmp_buf buf;
?
main()
{
volatile int b;
b =3;
?
if(setjmp(buf)!=0)
{
printf(%d , b);
exit(0);
}
b=5;
longjmp(buf , 1);
}
The output for this program is: (a) 3(b) 5(c) 0(d) None of the above
2. Consider the following program:
main()
{
struct node
{
int a;
int b;
int c;
};
您可能关注的文档
- Climate Change and Sustainable Development, Case of China.ppt
- Climate Change and Hydrologic Models A Review of Existing Gaps and Recent Research Developments.pdf
- Clinical Evaluation Report for delivery set.doc
- CloudSim源代码学习之虚拟机分配策略.doc
- Cluster Transformation Coefficients for Structure and Dynamics Calculations in nParticle S.pdf
- CloudStack安装常见问题解决.docx
- Clustering Markov States into Equivalence Classes using SVD and Heuristic Search Algorithms.pdf
- CMA 论述 真题.doc
- CMMI中英文术语对照表.docx
- Clustering Overhead and Convergence Time Analysis of the Mobilitybased MultiHop Clusterin.pdf
- 1.4.1充分条件与必要条件 课件_-高中数学人教A版必修第一册.pptx
- 【数学】分段函数课件-2026-2027学年高一上学期数学人教A版必修第一册.pptx
- 【数学】奇偶性课件-2026-2027学年高一上学期数学人教A版必修第一册.pptx
- 集合的概念+2026-2027学年高一上学期数学人教A版必修第一册.pptx
- 2.2基本不等式 课件_-高中数学人教A版必修第一册.pptx
- 1.1集合的概念 课件_-高中数学人教A版必修第一册.pptx
- 集合的概念2026-2027学年高一上学期数学人教A版必修第一册.pptx
- 集合的概念-2026-2027学年高一上学期数学人教A版必修第一册.pptx
- 3.1 确定位置 课件--2026-2027学年北师大版数学八年级上册.pptx
- 集合的基本运算课件-2026-2027学年高一上学期数学人教A版必修第一册.pptx
原创力文档

文档评论(0)