Untitled
unknown
plain_text
9 months ago
382 B
5
Indexable
#include<bits/stdc++.h>
using namespace std ;
int main (){
int *a = new int[3];
for (int i = 0 ; i < 3 ; i++){
cin >> a[i] ;
}
int *b = new int[5] ;
for (int i = 0 ; i < 3 ; i++){
a[i] =b[i];
}
b[3] = 50 ;
b[4] = 60 ;
delete[] a ;
for (int i = 0 ; i <5 ; i++ ){
cout << b[i] << " " ;
}
return 0 ;
} Editor is loading...
Leave a Comment