91com在线观看_五级片网站_久99视频_快播91_91免费版看片_www.91视频com

当前位置:高考升学网 > 招聘笔试题 > 正文

意法半导体软件笔试真题

更新:2023-09-14 07:00:35 高考升学网

  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年河北新闻网两学一做

时间:2023-09-18 07:0:24

2020年河北新闻网两学一做

时间:2023-09-15 11:0:59

两学一做学习教育知

时间:2023-09-21 06:0:30

2020年开展两学一做学习教

时间:2023-09-19 21:0:30
主站蜘蛛池模板: 521a久久九九久久精品 | 99re6在线视频精品免费 | 成人欧美一区二区三区视频 | 免费观看又色又爽又黄的 | 国产精品理论片在线观看 | 免费成人高清在线视频 | 亚洲熟妇av午夜无码不卡 | 欧美性巨大╳╳╳╳╳高跟鞋 | 中文字幕日韩高清 | 四虎影院欧美 | 2o2o天天看夜夜看狠狠看 | 9久久9久久精品 | 国产综合色香蕉精品五月婷 | 男人的亚洲天堂 | 日韩免费片 | 丰满熟女人妻中文字幕免费 | 国产精品美女久久久久久久久 | 精品国产1区 | 白嫩美女直冒白浆 | 在线va免费看成 | 亚洲xxxx动漫 | 伊人四虎| 国内真实实拍伦视频在线观看 | 久久伊人精品一区二区三区 | 午夜亚洲| 国产自制一区 | 亚洲综合干 | 国产 浪潮av性色四虎 | 国产精品一区二区三区免费视频 | www.亚洲国产| 欧美精品日日鲁夜夜添 | 极品毛片 | 久久久久亚洲av成人网人人网站 | 毛片视频免费网站 | 午夜理论片yy44880影院 | 先锋久久 | 台湾佬中文娱乐2222vvv | 日本免费在线一区 | 韩国三级观影久久 | 比比资源先锋影音网 | 日韩成人在线观看视频 |