Knowing the value of n

as we give the value of n,and C++ supports dynamic memory allocation,…we can just declare an array with n elements right???if yes then why are we constantly using some particular number to declare it(like arr[1000]),does it cost u more space to use in the program.

yes you can allocate memory dynamically
which is a better way as it takes only required memory
but in videos static memory allocation is used just for simplicity

there is one disadvantage of dynamic memory allocation which you have to keep in mind while making an array of size 10^7 to 10^8
As the memory is allocated during runtime, it requires more
time.

i hope this help
if you have more doubts regarding this feel free to ask
if your doubt is resolved mark it as resolved from your doubt section inside your course