C语言例子 指针两个数交换

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/qq_25275355/article/details/89480613
#include <stdio.h>
#include <stdlib.h>
int a=4;
int f(int n)
{
     int t=0;
     static int a=5;
     if(n%2){int a=6;t+=a++;}
     else{int a=7;t+=a++;}
     return t+a++;
}
int main()
{   int s=a,i=0;
    for(;i<2;i++)
    s+=f(i);
    printf("%d",s);
    system("pause");
}

猜你喜欢

转载自blog.csdn.net/qq_25275355/article/details/89480613
今日推荐