3.18.  ___________________________________95

char* strcpy(char* si, const char* s2)

s~

i

int i ;

for (i = 0; sl[i] = s2[i];' ++i)
/

return si;

}

,           -
    .  strcpy ()   for, 
s2[i] == 0.

 ,        
const    ,     .

3.18.  

 C++    ,   .   -
      .     ,
     .     -
     .

 

int a [100];  

int [3][5];  

int  [7] [9] [2];  

 ^-        k .  s,
  - ,     
 Si X s-i x ... X ^.    b  35 , 
  7  9  2 .         
 .

       
  ,      -
   :

int [2] [3] = { {1, 2, 3} , {4, 5, 6} };

// ,  {1, 2, 3, 4, 5, 6}
char name[3][9] = { "laura", "michele", "pohl" );

// '\0'

3.19.    new  delete

  new  delete      (free
store).         
,      . -
       new,   , 
delete.        ,  
  .