2 ms·
And this is such a misconception that it's often cited as a footgun: http://www.cplusplus.com/faq/sequences/arrays/sizeof-array/ http://www.cplusplus.com/faq/se
by steveklabnik 10y ago
And this is such a misconception that it's often cited as a footgun: http://www.cplusplus.com/faq/sequences/arrays/sizeof-array/ http://www.cplusplus.com/faq/sequences/arrays/sizeof-array/
> A beginner will often try something along the lines of size = sizeof( myarray ) (which is incorrect).