Can we implement exactly the same logic in c++ because as far as i know there is no way to declare an array without giving the size of array?
Same logic in C++
Hey Bhavya, can you please elaborate what you exactly want to ask. And we can declare an array in c++ without giving size by using pointer like this int* arr;
Hey Bhavya, I am marking your doubt as Resolved for now. Re-open it if required.