Pages
Home
News
Projects
Source Codes
Electronic Circuits
Download Softwares
Engineering Books
Dynamic Array In C++
#include <iostream>
using namespace std;
int main()
{
int *ptr;
int size;
cout<<"Enter Size of array";
cin>>size;
ptr= new int[size]; // where New keyword create dynamic array pointed by ptr
return 0;
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment