摘要:
int 變量的默認初始值為0 這可以寫個小程序測試下: #include <stdio.h> int main() { int i; if (i == 0) { printf("Hola, mundo, i = %d\n", i); } return 0; } 運行結果為: Hola, mundo, 閱讀全文
posted @ 2020-05-05 12:13
profesor
閱讀(5854)評論(0)推薦(0)
摘要:
輸入兩數a,b,交換值后輸出 #include <stdio.h> void swap(int *pa, int *pb) { int t; t = *pa; *pa = *pb; *pb = t; } int main() { int a, b; printf("input two numbers 閱讀全文
posted @ 2020-05-04 08:59
profesor
閱讀(156)評論(0)推薦(0)