首页 > 试题广场 >

指出下面一段程序的输出结果:

[问答题]
指出下面一段程序的输出结果:
#include <stdio.h>
int first;
int second;
void callee(int *first)
{
 int second;
 second = 1;
 *first = 2;
 printf("callee:first = %d second = %d\n",*first,second);
}
int main(int argc,char *argv[])
{
 first = 1;
 second = 2;
 callee(&first);
 printf("callee:first = %d second = %d\n",first,second); 
 return 0;
}

这道题你会答吗?花几分钟告诉大家答案吧!