3.10.                                                          85

{

int i = 7 , j = 3;

cout  i  ' \t'  j  endl; // 7 3
order(&i, &j ) ;

cout  i  '\t'  j  endl; // 3 7

i
s

void order(int* p, int* q)
(

int temp;

if (*p > *q) {
temp = *p;

*P = *<3.'

* q = t emp ;

}

       order ()  -
,       i  j.    
,  ,       .  
,  i  j (   )     .

  order().

 void order(int* p, int* q)

  p  q    .    -
     .    . 
main ()     order (&i , &j);

 if (*p > *q) {

temp = *;

* = *q;

* q = t emp ;

}

  ,    ,    -
   ,   ,  

   q.

     - 
   .

     

1.  -   .

2.      .

3.        .