Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
100% Quality Score
Upvotes Received
1
Posts with Upvotes
1
Upvoting Members
1
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
0 Endorsements
Ranked #107.70K
Ranked #4K
~311 People Reached
Favorite Forums
Favorite Tags
c++ x 1

1 Posted Topic

Member Avatar for learner_new

Declare a pointer in declaration and then use it. e.g #include<iostream> using namespace std; int main() { int len1,*arr1; cout<<"please enter the length of arrayn 1"; cin>>len1; cout<<"creating array now"; arr1= new int[len1]; cout<<"please enter the elements now"; for(int i=0;i<len1;i++) { cin>>arr1[i]; cout<<endl; } return 0; cout<<arr1; delete [] arr1; …

Member Avatar for shaykhhamza
0
311

The End.