This is the code I'm using, but the return of the tamVet function is not the size of the vector, but the size of the pointer over itself.
#include <stdio.h>
int tamVet(int *vet){
int tam;
tam = sizeof(vet) / sizeof(vet[0]);
return tam; //Está retornando 1 invés de 10, o número de elementos de vetor[10]
}
int main(){
int vetor[10];
printf("%i", tamVetor(vetor));
return 0;
}