In preparing for the call to a function, a copy is made of each argument; all
argument-passing is strictly by value. A function may change the values of its parameter
objects, which are copies of the argument expressions, but these changes cannot
affect the values of the arguments. However, it is possible to pass a pointer on the
understanding that the function may change the value of the object to which the pointer
points.
졸렬하게 데니스 리치 인용하면서 However 뒤에는 안가져오더라?
포인터 패스하면 원래 오브젝트에 영향줄수있는걸 누가모름?
그게 레퍼런스냐 포인터지 ㅋㅋ
ㄴ포인터가 레퍼런스만 처리하는 자료형인데 무슨 문제라도?
어 그래 니말이 옳ㅅ읍니다;; c++이나 배우고 와서 다시 그소리 해라
포인터의 value가 reference이기 때문에 function은 pointer의 passing을 허용하고 모든 arg를 value로 처리한단 소린데 이게 그렇게 이해가 안감?
C얘기하는데 C++얘기하는건 무엇?
C++이 새로운 방법으로 CBR 지원하면 C는 이제 CBR이 아니게 되는거냐?
보는 눈이 쥐구멍마냥 좁으니 지가 뭘 보고있는지도 모르지 ㅇㅇ
ㄴ 아 예 그렇군요 C++만 CBR인걸로 해둡시다 그럼
뭐 설명할 생각은 없는거같고 제 견문이 쥐구멍마냥 좁아서 그렇다는데 뭐 할말이 없네요
당연하지 ㅇㅇ 이제 좀 말이 통하는구만