const與static概括總結

static與const都是c語言中的關鍵字,他們均可以修飾變量,函數等。c++ 1.const函數   const與 變量spa     int  x = 5; // 變量指針    const int  x = 5;//在c++中,x是常量,在c語言中,x是不可改變的變量 code   const與指針類型blog int a = 10; int b = 20; int *pa = &a; i
相關文章
相關標籤/搜索