输入3个整数,从小到大输出(指针处理)

类型:指针指针 时间:2017.3.28code #include <stdio.h> int main(void) { int a,b,c,*p1=&a,*p2=&b,*p3=&c,*p; printf("input three integers:") ; scanf("%d%d%d",p1,p2,p3); if(*p1>*p2) { p=p1; p1=p2; p2=p; } if(*p1>
相关文章
相关标签/搜索