求数学学霸助攻!微博私信自动回复给q

【急求学霸----关于C语言】求大神助攻有木有~~~任意输入两个数,(用指针)按从小到大输出_百度知道
【急求学霸----关于C语言】求大神助攻有木有~~~任意输入两个数,(用指针)按从小到大输出
急求学霸----关于C语言】求大神助攻有木有~~~任意输入两个数
提问者采纳
int *Ptr1;stdio,%d&quot, Num2, *Ptr2=tmp, *Ptr2 )#include & Ptr2=&Num2;
if (*Ptr1&void main( void ){
sanff(&;排序后,*Ptr2)
tmp=*Ptr1, *Ptr2, Ptr1;
Ptr1=&Num1, %d&%d, Ptr2 ).h&gt, *Ptr1,*Ptr1=*Ptr2:%d;
不需要return 0 吗?........运行后的图片发给我可以吗
不需要return 0 吗?........运行后的图片发给我可以吗
因为&main函数类型是void,所以不必return 0#include &stdio.h&void main( void ){& & int Num1, Num2,& & int *Ptr1, *Ptr2;& &Ptr1=&Num1; Ptr2=&Num2;& &scanf(&%d,%d&, Ptr1, Ptr2 );& && & if (*Ptr1&*Ptr2)& & & & tmp=*Ptr1,*Ptr1=*Ptr2, *Ptr2=& &printf(&排序后:%d, %d&, *Ptr1, *Ptr2 );}的运行结果如下:
提问者评价
多谢大神助攻~
其他类似问题
按默认排序
其他1条回答
//b./zhidao/wh%3D600%2C800/sign=/zhidao/wh%3D450%2C600/sign=2fedf4eb24b899a901f26f://b.hiphotos.jpg" target="_blank" title="点击查看大图" class="ikqb_img_alink"><img class="ikqb_img" src="http.jpg" esrc="http.baidu://b<a href="/zhidao/pic/item/86df4eb24b899a901f26f.baidu
等待您来回答
下载知道APP
随时随地咨询
出门在外也不愁

我要回帖

更多关于 贴吧私信 的文章

 

随机推荐