what is the difference between dynamic array and simple array

int* A = new int[10]; // dynamic array

int A[10]; // simple array

If you want the explanation in words, then I'd suggest you look them up in your text book. There are also a lot of online explanations such as this one.

ok thanx

what is the difference between dynamic array and simple array

there is wide difference let check
if u write int a[5];
it will goes up to 5 index .. but if i am user and i want 10 index data then ur program couldnt so thats why we use the dynamic arrey its advntage is that who many array of index user wannt at the run time the code i like that ....

int a;
cin>>a;
int b=new b[a];
at the run time when the user enter the a it wiill pass through the parmeter and the array of thaat index will create ..........
k.... if u have an questioon then mail me <<SNIP>>

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.