Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- #include<stdlib.h>
- //prototipos
- void rodaUmaVez(int a, int b, int c);
- int main()
- {
- int a, b , c;
- printf("Digite os valores de A, B e C: ");
- scanf("%d %d %d",&a,&b,&c);
- rodaUmaVez(a,b,c);
- return 0;
- }
- //funçao roda uma vez
- void rodaUmaVez(int a, int b, int c)
- {
- int *auxA, *auxB, *auxC, *aux;
- auxA=&b;
- auxB=&c;
- auxC=&a;
- printf("A: %d\nB: %d\nC: %d",*auxA,*auxB,*auxC);
- }
Advertisement
Add Comment
Please, Sign In to add comment