Lesson Learned [12/08/2014]

1. NULL is not a keyword

You must include to use the NULL as your pointer initialisation.

2. Dynamic Allocation for Arrays

To avoid fixed size array problems, we can use dynamic allocation to obtain array from a heap.

    TYPE *ptr = new TYPE[size_];
    std::cout << ptr[2];
    delete [] ptr;

Popular Posts