3
Contributors
3
Replies
4
Views
7 Years
Discussion Span
Last Post by bilalislamabad
0
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.

Edited by Ancient Dragon: n/a

0

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>>

Edited by Nick Evan: mail removed

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.