What do you want to save?
Add Code snippet
New code examples
-
C++ 2022-02-26 08:20:05
error: use of parameter outside function body before ] token c++
If you are using GCC, then you are to pass the length of the array as a parameter to the function. void foo (int m, int arr[][m]) { //... } However, there seems to be a bug in either the compiler or the documentation, as the above function prototy... Add solution -
C++ 2021-10-27 21:04:05
error: use of parameter outside function body before ] token c++, 2D array in c++
If you are using GCC, then you are to pass the length of the array as a parameter to the function. void foo (int m, int arr[][m]) { //... } However, there seems to be a bug in either the compiler or the documentation, as the above function prototype ... Add solution -
C++ 2021-10-11 06:44:06
passing 2d array in c++ in function
If you are using GCC, then you are to pass the length of the array as a parameter to the function. void foo (int m, int arr[][m]) { //... } However, there seems to be a bug in either the compiler or the documentation, as the above function prototype ... Add solution
Best helpers
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5