C pointer special exercise

This chapter mainly explains 13 classic exercises about pointers. Meaning of array name First, review the knowledge about array names: 1. Sizeof (array name): here, the array name represents the whole array; 2. & array name: here, the array name represents the whole array; 3. In other cases, the array name represents the address of t ...

Posted by rocketsprocket on Mon, 13 Sep 2021 20:13:59 -0700

Understanding of pointers

1: Wrong use is not self-knowledge 2: Wrong export 3: Error resolution 4: Understanding and perception after solution 1: I believe everyone has heard of it, and I know it, and I also know the harm. But I don't know what I've been using is a wild pointer. I'm ashamed to say. Use pointer before //Function: read the contents in the pointer ...

Posted by hayson1991 on Fri, 10 Sep 2021 01:12:18 -0700

[C + +] smart pointer

1. Why do I need a smart pointer?    when using pointers, we generally need to apply for a piece of memory space from the memory for use, but if we forget to release the block space, it will cause memory leakage.    and if the program has exception handling and throws an exception when applying for memory usage time, th ...

Posted by korporaal on Thu, 02 Sep 2021 15:55:42 -0700