Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*CABEÇALHO
- Arquivo: LISTA 08 - Exercício 05.c
- Objetivo: Exiba todos os valores de um vetor usando ponteiros.
- Autor(a): Ramon Borges.
- */
- #include <stdio.h>
- //PROTÓTIPO DE FUNÇÕES
- void exibeVetor(int *vet, int qtde);
- int main()
- {
- int vetor[13] = {1,5,3,8,7,12,13,1,9,7,5,43,1};
- exibeVetor(vetor, 13);
- }
- void exibeVetor(int *vetor, int qtde)
- {
- int i;
- for(i = 0; i < qtde; i++, vetor++)
- printf("%d ", *vetor);
- return;
- }
Advertisement
Add Comment
Please, Sign In to add comment