1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | typedef char *(*ArrayOfCharPtr)[]; ArrayOfCharPtr func() { static char str[] = "Hello"; static char* ret[] = {str}; return &ret; } auto funcptr = &func; auto funcptrptr = &funcptr; int main() { char *(*(**foo[][8])())[] = { {funcptrptr, funcptrptr, funcptrptr, funcptrptr, funcptrptr, funcptrptr, funcptrptr, funcptrptr}, {funcptrptr, funcptrptr, funcptrptr, funcptrptr, funcptrptr, funcptrptr, funcptrptr, funcptrptr} }; return 0; } | cs |
[%] 아까 그 이상한 포인터 해석해 봄
#!(mrphys)
2021-01-29 10:57
추천 0
댓글 4
다른 게시글
-
코난(conan)쓰는 갤럼 많냐?[%] 익명(8.37) | 21.01.29추천 0
-
전에 쓴 포인타 글 [6][%] 츄럴(211.197) | 21.01.29추천 1
-
윗집 코고는소리들리는데 public noise인듯 [4][%] 익명(121.136) | 21.01.29추천 0
-
포인터가 어려워봤자라 생각했는데 [3][%] 익명(112.149) | 21.01.29추천 0
-
c언어 배열, 포인터 관계 이렇게 정리하면 깔끔 [5][%] 익명(175.124) | 21.01.29추천 1
-
C언어 떡밥 [7][%] 익명(112.149) | 21.01.29추천 0
-
자바 질문좀 [4][%] 익명(112.149) | 21.01.28추천 0
-
git sha-1 몇글자를 써야되는거임 [2][%] 익명(59.13) | 21.01.28추천 0
-
윈도우 vs 우분투 배터리 [1][%] 익명(115.86) | 21.01.28추천 0
-
맥북에 리눅스 설치하기 왜이리 까다롭냐 [3][질문] 익명(211.186) | 21.01.28추천 0
https://gall.dcinside.com/github/18247
이
글에 있는 포인터임
의 출처임
http://unixwiz.net/techtips/reading-cdecl.html
오호라
점심 나가서 먹을거 같애