Skip to content

Instantly share code, notes, and snippets.

@gerep
Created Dec 30, 2014
Embed
What would you like to do?
#include <stdio.h>
#include <stdlib.h>
void test(int *vet)
{
printf("depois %lu\n", ( sizeof(vet)/ sizeof(vet[0])) );
}
int main(int argc, char const *argv[])
{
int vet[]={1,2,3,4,5};
printf("antes %lu\n", ( sizeof(vet)/ sizeof(vet[0])) );
test(vet);
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment