Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- void Swap (int *a,int *b);
- int main (void)
- {
- int num1, num2;
- printf("\t\tEscreva dois numeros\n\n");
- scanf("%d %d", &num1, &num2);
- printf ("\n\nEstes numeros valem %d %d\n", num1, num2);
- Swap (&num1, &num2);
- printf ("\n\nEles agora valem %d %d\n", num1, num2);
- }
- void Swap (int *a,int *b)
- {
- *a=0;
- *b=0;
- }
Add Comment
Please, Sign In to add comment