C++刷題筆記(一)

1.數組的初始化html int *p1=new int[10];該語句給指針p1分配內存,沒有對指針初始化, ios int *p2=new int[10]();該語句給指針p2分配內存,並初始化指針。數組 2.數組做爲形參,實參會退化爲指針函數 #include<iostream> using namespace std; void example(char acWelcome[]){ co
相關文章
相關標籤/搜索