Skip to content

Commit

Permalink
Últimos arquivos
Browse files Browse the repository at this point in the history
  • Loading branch information
ed1rac committed Mar 19, 2024
1 parent 8eb8287 commit 0349bcf
Show file tree
Hide file tree
Showing 2 changed files with 181 additions and 140 deletions.
6 changes: 3 additions & 3 deletions UNP/2023/1 seg/Arrays/array_n_numeros.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@ int main()
{
int i, tamanho;

printf("Digite um tamanho de array [m x: 100]");
printf("Digite um tamanho de array [máx: 100]");
scanf(" %d", &tamanho);

int array[tamanho];
for (i = 0; i < tamanho; i++)
{
array[i] = 2 * i + 1;
printf("Endere‡o de array[%d] = %p\n", i, &array[i]);
printf("Endereço de array[%d] = %p\n", i, &array[i]);
}
printf("\n============================\n");
// exibindo
Expand All @@ -20,4 +20,4 @@ int main()
printf("array[%d] = %d\n", i + 1, array[i]);
}
return 1;
}
}
Loading

0 comments on commit 0349bcf

Please sign in to comment.