把看過資訊的重點整理出來就是觀點
#include <stdio.h> #define S(z) (z*z) void foo(int x, int *py) { int n = S(x+1); x = *py; *py = n; } int main() { int a = 2; int b = 10; foo(a, &b); ++b; printf("a = %d b= %d\n", a, b); return 0; }
沒有留言:
張貼留言