C語言const 關鍵字

面試的時候,應該有遇到const相關的,畢竟也是學習中的一個知識點,看完咱們這篇文章,我以爲你應該能夠在面試中完徹底全的吃透const這個點。面試 const和變量 const uint32_t hello = 3;const uint32_t hello = 3; 編譯的時候,編譯器就知道了 hello 這個變量是不能夠被修改了,const其實也就是read only,你只能讀個人,不能修改我。
相關文章
相關標籤/搜索