diff --git a/code/dynamic_2d_array.cpp b/code/dynamic_2d_array.cpp new file mode 100644 index 0000000..9fe5889 --- /dev/null +++ b/code/dynamic_2d_array.cpp @@ -0,0 +1,26 @@ +#include +#include + +using namespace std; + +int main() { + int m; + cin>>m; + int *arr = new int[m*m]; + for(int i=0;i>arr[i*m+j]; + } + } + for(int i=0;i