Advertisement
chete

practica 4 C

Nov 5th, 2014
2,910
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <stdio.h>
  2.  
  3. void funciontest(int variable1);
  4.  
  5. int main(int argc, char *argv[])
  6. {
  7.  
  8. int variable = 0;
  9.  
  10.  
  11. printf("Mostrnado el valor de la varible:[%d]\n", variable);
  12. funciontest(9);
  13.  
  14. return 0;
  15.  
  16. }
  17.  
  18. void funciontest(int variable1)
  19. {
  20.  
  21.  
  22. int variable [10];
  23. int variable2;
  24. int f=0;
  25.  
  26.  
  27. printf("Mostrnado el valor de la varible1:[%d]\n", variable1);
  28. printf("Mostrnado el valor de la varible2:[%d]\n", variable2);
  29.  
  30. for(f=0;f<10;f++)
  31. variable[f]=f*2;
  32. printf("Mostrando el varlor de la variable en la posicion[%d]=%d\n", f, variable[f]);
  33.  
  34. return;
  35. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement