欧美在线观看www-欧美在线观看高清一二三区-欧美在线观看网站-欧美在线观看网址-国产高清在线精品免费-国产高清在线精品一区二区

當前位置:高考升學網 > 招聘筆試題 > 正文

意法半導體軟件筆試真題

更新: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
主站蜘蛛池模板: 一级片成人 | 亚洲成人免费在线 | 久久国产成人精品麻豆 | 欧美一级成人一区二区三区 | 五月天男人的天堂 | 美国性大片在线观看免费 | 久久精品网站免费观看调教 | 91久久福利国产成人精品 | 成人亚洲网| 日韩视频亚洲 | 四虎在线视频免费观看 | 色综合五月婷婷 | 欧美高清一区二区三区欧美 | 四虎影院在线免费观看视频 | 岛国大片免费看 | 国产精品国产三级在线专区 | 日韩亚洲精品不卡在线 | 国产精品亚洲高清一区二区 | 国产成人精品免费视频动漫 | 91免费国产在线观看尤物 | 91热视频在线观看 | 日本欧美一区二区三区免费不卡 | 美日韩在线观看 | 亚洲一区二区免费 | 一级激情视频 | 亚洲视频黄 | 日韩视频在线观看一区二区 | 中文字幕一区二区三区精彩视频 | 韩国一级黄色 | 男女视频在线观看免费 | 亚洲欧洲日韩在线 | 久久最新免费视频 | 两个人的视频在线观看 | 亚洲黄色成人 | 国产成人永久免费视频 | 久久er国产精品免费观看1 | 亚洲精品视频区 | 热久久这里只有精品 | 国产成人精品免费久久久久 | 敢死队4在线观看高清完整版 | 男人天堂网页 |