I wanted to ask that when we do:
int n;
cin>>n;
int arr[n];
then is it dynamic memory allocation or static memory allocation.
Int n; cin>>n,; int arr[n]
Dynamic memory is allocated during program runtime, hence this is also an example of dynamic memory allocation
ok
got it bhaiya.
doubt cleared
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.