Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main(void){
- void funcaoPrint(int x, int vetor[]);
- int x = 10;
- int vetor[3] = {10};
- funcaoPrint(x, vetor);
- printf("= = = Main = = =\n");
- printf("Variavel Int Na Main: %i \n", x);
- printf("Vetor na Funcao Principal: %i \n", vetor[1]);
- return 0;
- }
- void funcaoPrint(int x, int vetor[]){
- x = x + 10;
- vetor[1] = 20;
- printf("= = =Funcao = = =\n");
- printf("Variavel Int na Funcao Print = %i \n", x);
- printf("Vetor na Funcao print = %i \n\n", vetor[1]);
- }
- //Sobre
- //Aula: Comportamento de Argumentos com Funções (#38)
- //Video: youtube.com/watch?v=NS1LdXMyx3A
- //Data: 14/01/2021
- //Autor: @d3dx939dll
- //Grupo: Heikoa
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement