Posts by user56570 • 11 points
1 post
-
0
votes1
answer7041
viewsQ: Function that counts number of vector elements
I tried to use this function to count the number of vector elements, but it doesn’t work. int tamanho(int *p) { return sizeof(p) / sizeof(int*); } I wanted to stop by for: i< tamanho(vetor). It…