~cpp
#include<iostream> 
using namespace std; 

void main() 
{ 
    int i; 
    int *a = new int[4]; 
    int *b = new int[4]; 
    int *c = new int[4]; 

    for(i=0; i<=3; i++){ 
        a[i] = b[i] = i; 
        c[i] = a[i] + b[i]; 
            cout << c[i]; 
    } 

    delete [] a; 
    delete [] b;     
    delete [] c; 


}

----
데블스캠프2006/화요일/pointer
Retrieved from http://wiki.zeropage.org/wiki.php/데블스캠프2006/화요일/pointer/문제3/주소영
last modified 2021-02-07 05:29:06