av片一区二区三区-av片亚洲-av片免费看-av片免费观看-欧美视频色-欧美视频三区

當前位置:高考升學網(wǎng) > 招聘筆試題 > 正文

意法半導體軟件筆試真題

更新:2023-09-14 07:00:35 高考升學網(wǎng)

  a test for the c programming language

  i. history

  1. c was originally designed for and implemented on the (what) operating system on the dec pdp-11, by (who) .

  2. the most recently approved ansi/iso c standard was issued in (when) , and single 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 keyword extern is used during .

  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 rewrite this complicated declaration.

  4. the following 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, which has h (h>0) layers, and its each node has w (w>0) sub-nodes.

  please complete the following 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 width)

  {

  int i;

  if ( !subtree ) //if necessary, allocte memory for subtree

  denode(subtree);

  if ( height == 1 )

  return subtree;

  else if ( height == 2 ) {

  struct tree leaf = null;

  for ( i=0; i

  denode ( );

  ;

  leaf = null;

  }

  return subtree;

  }

  else {

  for ( i=0; i

  }

  return subtree;

  }

  }

  main()

  {

  .........

  struct tree root = null;

  root = dtree (root, h, w) ; // h and w are integers get from input

  .........

  }

相關文章

最新圖文

2020年河北新聞網(wǎng)兩學一做

時間:2023-09-18 07:0:24

2020年河北新聞網(wǎng)兩學一做

時間:2023-09-15 11:0:59

兩學一做學習教育知

時間:2023-09-21 06:0:30

2020年開展兩學一做學習教

時間:2023-09-19 21:0:30
主站蜘蛛池模板: 局外人电影| 破冰 电影| 仪铭| 折纸视频教程| 2024微信头像| 恋爱中的城市 电影| 北京新闻频道回看| 中国安全生产报| dj舞曲劲爆歌曲大全| 台州林毅| va电影| 泥视频| 笼中女电影| 果宝特攻5 2030| 雅雅英| 变形金刚6免费观看高清完整版| 电影《地狱天堂》鬼片| 蒋祖曼| 泰国xxx| 心跳影视| 大唐诡事录之西行免费观看| 抖音美好生活| 宋元甫| 工会基层组织选举工作条例| 电影鸭之一族| angelababy婚礼大作战| 江苏卫视今天节目表| 朱茉颜| 清理垃圾360清理垃圾大师| 最新欧美电影| 公共事务在线| 金珠电影| 原纱央莉| 国有企业党建讲话原文| 来5566看av激情电影使劲撸| 1905电影网| 《西游降魔篇》2| 火辣监狱电影在线观看| 头文字d里演员表| 大尺度激情视频| 闺蜜心窍 电影|