開發平台(Platform): (Ex: Win10, Linux, ...)
macOS
編譯器(Ex: GCC, clang, VC++...)+目標環境(跟開發平台不同的話需列出)
GCC
額外使用到的函數庫(Library Used): (Ex: OpenGL, ...)
問題(Question):
我想請問一下丟&A 然後用A**去接是什麼意思?
另外我測試了**A *A A 去接
然後印出 *A **A的值都會一樣
讓我更困惑了
餵入的資料(Input):
預期的正確結果(Expected Output):
錯誤結果(Wrong Output):
console:
10
20
程式碼(Code):(請善用置底文網頁, 記得排版)
#include <stdio.h>
#include <stdlib.h>
void fun(int **A){
printf("%d\n",*A);
printf("%d\n",**A);
}
int mian(){
int a = 10;
int *A = &a;
fun(&A);
}
補充說明(Supplement):