FranciscoSoccol

Lista 08 - Exercicio 06

Aug 10th, 2013
45
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.44 KB | None | 0 0
  1. #include<stdio.h>
  2. #include<stdlib.h>
  3.  
  4. //prototipos
  5. void rodaUmaVez(int a, int b, int c);
  6.  
  7. int main()
  8. {
  9.     int a, b , c;
  10.     printf("Digite os valores de A, B e C: ");
  11.     scanf("%d %d %d",&a,&b,&c);
  12.     rodaUmaVez(a,b,c);
  13.     return 0;
  14. }
  15.  
  16. //funçao roda uma vez
  17. void rodaUmaVez(int a, int b, int c)
  18. {
  19.     int *auxA, *auxB, *auxC, *aux;
  20.     auxA=&b;
  21.     auxB=&c;
  22.     auxC=&a;
  23.     printf("A: %d\nB: %d\nC: %d",*auxA,*auxB,*auxC);
  24. }
Advertisement
Add Comment
Please, Sign In to add comment