You can use strlen(a) (from string.h) to get the string length excluding the nul...
參考字串 char a[] = "abc" //等同 char a[4]= {'a', 'b', 'c', '\0'} 然後,char*...
WG21 N4713(ISO C++17最終草稿)是這麼寫的 7.2 Array-to-pointer conversionAn lvalue or rval...
提供給你參考 https://dev.to/codemee/c-yu-yan-de-zhen-lie-yu-zhi-wei-qi-pointer-2ikm
簡單說一般變數a是值,&a是位址/指標而在此題的情境(陣列a[5]),此時 a=&a 詳如下圖參考看看 另外提醒一點要小心這句話 這個程式是...