Can anyone say how to store matrix of size 1e5 rows and 1e5 columns in c++?

You can’t

1 Like

what can be the maximum size in matrix.

Matrix of dimensions N,M where N\times M \ \le 10^8

Same holds for vectors too, there has to be a memory efficient approach to the problem which you’re trying to solve which doesn’t need you to create such huge matrices.

1 Like