Want to know meaning

Meaning of -
vector< vector< int > > matrix(100, vector < int > (50, 100) )

hi @payal_05 this is the syntax for a 2D vector.
The constructor has the parameteres: v(size, value)
it will declare a vector v of size “size” and initialise all the values of vector as “value”

A 2D vector is nothing but a vector of vector. The given syntax will make a 2D vector called “matrix” with 100 rows and 50 columns, and all the values will be initialised as 100

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.