const 정리
-
const, * ..플밍/C++ (overview) 2012. 1. 3. 22:45
2006/07/26 02:14 const int p = 10; int const p = 10; (같은 표현) p = 10; ------------------------------------------------------------------------------ => 컴파일 에러 [p : const int p] ------------------------------------------------------------------------------ const int *p; int const *p; (같은 표현) int t=10,y=20; p = &t; p = &y;