你也能拿高薪: 名企面试自助手册: 39. 全球第三、欧洲第一的大半导体企业
意法半导体软件试题
a test for the c programming language
i. history
1. c inally designed for and implemented on the ( system on the dec pdp-11, by (le line comments notation “//” is or isn’t a feature of c89.
ii. syntax and semantics
1. in a runtime c program, auto variables are stored in , static variables are stored in , and function parameters are stored in .
a. stack b. heap c. neither stack nor heap
2. the statement “extern int x;” is a , and the key .
a. variable declaration b. variable definition
c. compilation time d. runtime
3. there is a complicated declaration: void ( signal (int, void ()(int)) ) (int);
if a statement “typedef void (p) (int);” is given, please re code is a segment of c program.
..........
void func(int p)
{...........}
..........
main()
{
int num=0;
.........
func(&num);
........
}
..........
here, the function argument “&num” is passed .
a. by value b. by reference
iii. practice
create a tree, incomplete solution.
#include
#include
struct tree{
char info;
p_sub; //link to sub-nodes
};
// allocate memory and initiate
void dnode ( struct tree tmp )
{
=malloc( sizeof (struct tree) );
= 0x41;
= null;
}
struct tree dtree (struct tree subtree, int height, int ht == 1 )
return subtree;
else if ( height == 2 ) {
struct tree leaf = null;
for ( i=0; i</p>
<b>狠男人小说最快更新,无弹窗阅读请。
狠男人网最快更新,无弹窗阅读请收藏狠男人小说网(www.41nr.com)。
- 大玄印
第六百四十八章 参赛名单 - 仙道少年行
第143章 行路 - 规则怪谈:死亡黑猫饲养指南
第218章 诡梦列车(11) - 骑砍玩家狂想曲
第一百三十二章 诺德王国分裂 - 猎天争锋
第1900章 跨越星区的薪火相传! - 秦刀
第八十三章洗脱嫌疑 - 得知真相,七个师姐跪求我原谅
第一百三十三章关键时刻 - 大隋:我杨俨,继承大统
第一百一十二章 审问 - 十日诡谈
第一百八十五章 强煞(二) - 界起通天
第1069章云尘闭关再入极境 - 开局:葬神峰主,我培养大帝无数!
第九十六章 我应该没有强迫你吧?求推荐 - 灵宠创造模拟器
第1295章 冥府与后土大神的关系 - 重生:我在修仙界大杀四方
第一百零一章一剑斩苍穹 - 亿万萌宝老婆大人哪里跑
第3645章 你们都还好吗? - 永夜圣典
第九十七章,全新的魔族 - 第一瞳术师
第1882章 番外:现代篇(44) - 道婿下山
第24章 挖祖坟 - 恐怖复苏之全球武装怪胎
第2249章 拔钉(下) - 抛夫弃子,我带六个女儿吃香喝辣
第834章 电棍 - 妈咪轻点虐,渣爹又被你气哭啦
第350章 别让她伤到自己的眼睛 - 刚出娘胎,定亲转世女帝
第182章 赢给你看