Advertisement
Hesiro

ASDF1

Feb 12th, 2014
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.19 KB | None | 0 0
  1. double intercambiar (double *a, double *b){
  2.     double aux;
  3.     aux = *a;
  4.     *a = *b;
  5.     *b = aux;
  6.     return (*a, *b);
  7. }
  8.  
  9. void main(){
  10.     double a,b;
  11.     a = 5.0;
  12.     b = 7.7;
  13.     intercambiar(&a,&b);
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement