Declaring pointer in the loop

while(n–)
{
int *a = new int[n]
cout << a;

will the pointer is declared only once or everytime the loop iterates

Hello @shiva57reddy,

Following is the answer to your question:

Hope, this would help.
Give a like, if you are satisfied.