U E D R , A S I H C RSS

데블스캠프2006/화요일/pointer/문제3/주소영

~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; 


}
Valid XHTML 1.0! Valid CSS! powered by MoniWiki
last modified 2021-02-07 05:29:06
Processing time 0.0204 sec