看板 Programming 關於我們 聯絡資訊
#include <stdio.h> #include <stdlib.h> void trying(float *b) { *b=4; } int main() { float *b; trying(b); printf("b=%3.2f ",b); return 0; } 我想要把 function trying 裡面的b值 叫來 main裡使用,要怎麼寫才會成功。 也就是想印出 b=4 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.112.252.68 ※ 編輯: datagram 來自: 140.112.252.68 (03/16 22:25)