Why can't I do something like this in C++? (Unlike in JavaScript or PHP)
int matrix[100][100], ar[100];
//...reading the matrix...
ar = matrix[0];
I would expect ar to contain matrix[0][0], matrix[0][1]...matrix[0][100]. Instead, it just returns me a memory address.
Why doesn't this work (what's the exact feature that C++ does not have, are there any disadvantages/advantages? which?) and how can I replicate this behaviour or at least the same task. (without having to loop and copy)
 
     
     
     
    