0
How can i measure (n. of elements) an array by reference it from a pointer?
6 odpowiedzi
+ 5
The one I had in ming was for java.
The other way is to use a foreach loop fuction to count the array.
Not recommended of number values.
https://code.sololearn.com/cIdHe7Dqo9kX/?ref=app
https://code.sololearn.com/cO2mkNBP194a/?ref=app
+ 3
Depends on the type of array.
You need to give details in a question.
+ 3
Edit
my mistake.
you need to use the (sizeof(Array) / sizeof(int))
in C++ .length is for another language
0
look at line 78
https://code.sololearn.com/c8f3pIYPH6ce/?ref=app
0
it is done...
using ".lenght" it says that there is an error (request for member 'length' in 'a', which is of non-class type 'int*').
0
ok thanks.
i not wanted to fill that with more code, but if there is not another option ...
fuera del tema:
hablas espannol? eres moderador de (SL)?