数値伝達リファレンス伝達(Numeric Transfer Reference Transfer)

625 ワード

int main(int argc, const char * argv[]) {
     //    
    int a=10;
    int b=20;
    
    int i=a;
    a=b;
    b=i;
    printf("%i%i
",a,b); // * int m=1; int* m1=&m; int n=3; int* n1=&n; int y=*m1; printf("%i
",y); *m1=*n1; *n1=y; printf("%i%i",m,n); return 0; }