看程序,写结果

    一同学曾给我出过下面这个题目,现在拿过来与大家分享:

   1: /*
   2:  *  试说明下列程序段的运行结果
   3:  */
   4:  
   5: #include <stdio.h>
   6: #include <stdlib.h>
   7:  
   8: void main(int j) 
   9: {
  10:     printf("%d\n", j);
  11:     ((void(*)(int))((int)&main + ((int)&exit - (int)&main)*(j/1000)))(j+1);
  12: }

 

[== The End ===]

posted @ 2012-11-26 19:34  bitbyte  阅读(150)  评论(0编辑  收藏  举报