欧美在线观看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
主站蜘蛛池模板: 四虎影视在线看免费 720p | 欧美成人高清免费大片观看 | 欧洲国产伦久久久久久久 | 成人性生免费视频 | 拍拍叫痛的无挡视频免费 | 99性视频| 无限视频免费观看网 | 日本高清色视频www 日本高清色本在线www游戏 | 国产精品久久久久不卡绿巨人 | 国产馆在线观看免费的 | 91玖玖| 天堂 在线最新版在线 | 四虎精品久久久久影院 | 国产综合成人亚洲区 | 国产精品高清全国免费观看 | 在线观看免费视频网站色 | 亚洲国产天堂在线观看 | 韩国福利一区二区美女视频 | 国产精品1024在线永久免费 | 久久se精品一区二区影院 | 97视频免费在线 | 日日干视频 | 动漫免费看的网站 | 成人精品国产亚洲欧洲 | 精品一区二区三区亚洲 | 夜鲁夜鲁夜鲁在线观看福利 | 日本欧美一区二区三区在线观看 | 亚洲日韩男人网在线 | 国产成人精品一区二区三区 | 日韩亚洲国产欧美精品 | 毛片区| 国产精品亚洲精品 | 国产激情视频 | 日韩高清特级特黄毛片 | 国产精品真实对白精彩久久 | 日本爽爽爽爽爽爽在线观看免 | 日韩新片在线观看 | 久久久不卡国产精品一区二区 | 欧美图片在线观看 | 黄片毛片免费在线观看 | 日韩女同|