我也想当程序员

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

Yahoo2013最新笔试题新鲜出炉

1.predict the output of the following program code. How many "Y" will be printed.

main()
{
      fork();fork();fork();fork();
      printf("Y");
      fork();      
}   

2.Inverse words of a sentence: such as input "Jack likes Marry"

output: "Marry likes Jack"

Note: You can ignore any character that is neither an alphanumeric nor a blank space.

use pseudo-code 

posted on 2012-10-12 10:33  我也想当程序员  阅读(63)  评论(0)    收藏  举报