fork download
  1. int xxx(int vetor[]) {
  2. return sizeof(vetor);
  3. }
  4.  
  5. int main() {
  6. int vetor[] = {10, 3, 5, 8, 1, 9, 2, 4, 7, 0, 6, -1};
  7. int n = sizeof(vetor) / sizeof(int);
  8. printf("%d\n", n);
  9. printf("%d\n", xxx(vetor));
  10. }
Success #stdin #stdout 0s 4368KB
stdin
Standard input is empty
stdout
12
8