I am now clear that we can save memory by dynamic allocation of memory by the example of array declaration.
I would like to know more about 'vector' data type .
Can you please send me a link or suggest any source to get more knowledge on C++.
I also doubt one more yhing that while declaring a pointer we allocate a memory location i.e we allocate the same amount of memory as the one to which yhe pointer points .
So this means that we initially allocate memory for the pointer then again go for dynamic declaration of another variable...
Can anyone help me understand the basic use of pointers.
I am aware of pointers,yet I feel that a program can be made more
easier without using a pointer.
My basic dout is that can pointers be used to save memory by dynamic declaration of variables.
I thought over it but found that using...