[Solved] how can i fill a 2d array with 0 and 1.? [closed]
As usual there are many ways to do the task. For example you can use the following solution #include <iostream> int main() { const size_t M = 5; const size_t N = 10; int a[M][N]; for ( size_t i = 0; i < M; i++ ) { for ( size_t j = 0; j < … Read more