欧美在线观看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
主站蜘蛛池模板: 国产精品中文 | 亚洲一级毛片免费观看 | 国产亚洲欧美日韩在线观看不卡 | 中文字幕日本不卡一二三区 | 久久2017| 成片免费观看视频在线网 | 欧美大片无尺码在线观看 | 网站黄色免费 | 欧美中文字幕一区 | 国产99视频精品免费视频免里 | 亚欧视频在线观看 | 999久久66久6只有精品 | 欧美一级视 | 91极品哺乳期女神挤奶在线 | 午夜激情婷婷 | 国产人成精品午夜在线观看 | 青青色视频 | 日产精品卡2卡三卡乱码网址 | 国产精品久久久久久久久久妇女 | 九月婷婷丁香 | 亚洲欧美一二三区 | 日韩视频在线观看免费 | 亚欧有色亚欧乱色视频 | 4hc44www四虎永久 | 极品美女在线播放 | 精品免费久久久久国产一区 | 欧美在线一二三区 | 黑人与欧洲性大战 | 成人羞羞免费视频 | 国产haodiaose最新| 亚洲一区 在线播放 | 精品无人区乱码在线观看 | 日日摸日日添夜夜爽97 | 青青草一区二区免费精品 | 97在线免费观看 | 九九视频精品在线 | 富二代成人 | 亚洲欧美天堂网 | 久久精品国产曰本波多野结衣 | 亚洲综合色就色手机在线观看 | 中文国产成人精品少久久 |