When to use pointers and when not to?

后端 未结 5 1265
滥情空心
滥情空心 2020-12-02 08:21

I\'m used to doing Java programming, where you never really have to think about pointers when programming. However, at the moment I\'m writing a program in C++. When making

5条回答
  •  萌比男神i
    2020-12-02 08:42

    You need to do some assembly programming and understand the memory layout well. C is just a crossplatform assembly, unlike Java or other languages. To use it properly, one should understand low level details.

    All comments made are valid, but for individuals like you, who jump from high level languages to C, having this sort of experience would be more than beneficial. With proper understanding, you would not ask questions like that anymore.

提交回复
热议问题