叠拓c语言面试题,叠拓C语言笔试题目.doc
叠拓c语言面试题,叠拓C语言笔试题目.doc
叠拓C语言笔试题目
Name: Telephone No. :
Date:
Instructions
Please answer following questions in English, you can only use less than 60 minutes for this test
1. Preprocessor 10 points)
a) Please define a Macro by using preprocess instruction #define in 16-bit machine, the constant is used to indicate how many seconds in one year. (To ignore the leap year)
#define SEC_PER_YEAR (365*24*60*60UL)
(Note: If you define it to be (365*24*60*60)UL, you maybe find that it does not compile well.)
b) Please define a Macro, which is used to compare two parameters and return the smaller parameter.
#define MIN(a, b) ((a)<=(b)?(a):(b))
2. What is the problem of the below code (5 points)
#include
char* Func( void )
{
char p[10];
strcpy( p, "111" );
return p;
}
This function can not ret
- 老鼠出迷宫问题(Java)(递归)
- Oracle中rowid的用法(全面)
- 俞敏洪励志演讲:摆脱恐惧
- Platforms
- 声音的数字化表示
- 用JS 控制文字两行 ,展示省略号(兼容谷歌 IE等各大浏览器)
- Linuxmmap
- C++实现多线程及其三种方法实现多线程同步
- JAVA关于Calendar类的使用
- Python爬虫
- Linux 终端 基本指令
- 小程序列表多个批量倒计时
- MFCCList使用
- HTTPS 中双向认证SSL 协议的具体过程
- MBRGPT硬盘分区类型属性详解(Win下更改设置OEM恢复分区方法)
- linux查看tomcat 控制台,linux 下查看Tomcat的状态,以及开启停止服务命令
- 基于STM32F429的语音识别交互系统