it is shown in the video that array a can be overwritten as it is created int he static memory. but b is also created in static memory then why it cant be overwritten?
About the new operation
at 3:53 in the video, it is mentioned
@aslesha.j7
Actually a is created dynamically and not statically
Bhaiya has also commented above a that it is statically created
Please see again
If your doubt is resolved please close it
bhayiya says it is statically created and you are saying it is dynamically created. what is your point?
@aslesha.j7
Bhaiya said that the pointer a is statically created
But the array appointed to a is dynamic
So while the array assigned to a can be changed
b was created as an array and not a pointer
So it can’t be reassigned
okay thanks I got it