下列程序的执行结果是什么

下列程序的执行结果是什么?

#include “stdio.h”

void main( )

{ int a,b,t;

int *pa=&a,*pb=&b;

printf(“please input two number:”);

scanf(“%d%d”,pa,pb);

t=*pa;

*pa=*pb;

*pb=t;

printf(“a=%d,b=%d\n”,a,b);

printf(“*pa=%d,*pb=%d”,*pa,*pb);

}

 

 

 

程序的执行结果是

please input two number:45 65

a=65,b=45

*pa=65,*pb=45

© 版权声明
THE END
喜欢就支持以下吧
点赞13 分享
Making the absolute best of ourselves is not an easy task. It is a pleasurable pursuit...but it requires patience, persistence, and perseverance.
做最好的自己并不容易,这是很美好的愿望,需要耐心、坚持和毅力
评论 抢沙发

请登录后发表评论

    暂无评论内容