You can’t – arrays decay to pointers when passed as function parameters so sizeof
is not going to help you.
More Related Contents:
- Getting a segmentation error when printing my array of strings
- Invalid operands to binary expression while implementing vector [closed]
- For loop with an array
- Difficulties on atributting a array to another [closed]
- can’t extract data from a structure array c++ [closed]
- How would I implement Arrays into this code
- The array index doesnt show the character [closed]
- How do I declare a 2d array in C++ using new?
- Initialization of all elements of an array to one default value in C++?
- How to pass a multidimensional array to a function in C and C++
- How to return an array from a function?
- Can placement new for arrays be used in a portable way?
- When passing an array to a function in C++, why won’t sizeof() work the same as in the main function?
- Printing an array in C++?
- Comparing arrays for equality in C++
- Sorting two corresponding arrays [duplicate]
- What is the simplest way to convert array to vector?
- What is useful about a reference-to-array parameter?
- How to reliably get size of C-style array?
- Passing array of structures to function c++
- What is the use of 0-length array (or std::array)?
- can’t modify char* – Memory access violation
- Braces around string literal in char array declaration valid? (e.g. char s[] = {“Hello World”})
- Function returning array but main showing garbage [duplicate]
- Linear index upper triangular matrix
- Parse string containing numbers into integer array
- difference between pointer to an array and pointer to the first element of an array
- Array of size defined by not constant variable
- int *array = new int[n]; what is this function actually doing?
- How do I find a particular value in an array and return its index?