關於C語言形參與實參的問題探究——子函數中改變主函數字符串數組的值

這裏很巧,因爲剛好數組的首地址表示出來就是數組本身~~!所以雖然涉及到了傳入指針,也很簡單~~ #include <iostream> #include <stdio.h> #include <string.h> using namespace std; void converse(char str[]){//還有另一種方法,就是converse(char *str){}     int len,
相關文章
相關標籤/搜索