We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
Once my teachers said me that declaring a pointer
like
int numElements;
cin >> numElements;
int arr[numElements];
would lead me to static memory issues. They suggest me
to implement dinamic memory. Is there a special fact to
ignore my teachers in this case? Help me, because i don't
see anyone complained with this. Sorry for my english.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Arrays Introduction
You are viewing a single comment's thread. Return to all comments →
Once my teachers said me that declaring a pointer like int numElements; cin >> numElements; int arr[numElements]; would lead me to static memory issues. They suggest me to implement dinamic memory. Is there a special fact to ignore my teachers in this case? Help me, because i don't see anyone complained with this. Sorry for my english.