#include <iostream>
#include <cstring>
int main() {
using namespace std;
int *arr = new int[20]; // or {3,5,6,7,8,}
for(int i=0;i<5;i++){
cin >> arr[i] ;
}
for(int i=0;i<5;i++){
cout << arr[i] ;
}
delete[]arr;
arr = nullptr ;// if the array in a function then no need to do
char *str = new char[7];
strcpy(str,"adarsh");
cout << endl << str;
delete[]str;
str = nullptr;
}
To embed this project on your website, copy the following code and paste it into your website's HTML: