U can say that array is also 1 type of linklist with contiguous memory allocation. In lniklist we specify the address of 1st node and in array we specify the address of 0th position if we want to send the array to any function.. And then 0th position automatically points to 1st position and 1st to 2nd position and so on... And adress automatically allocated continuously i.e if 0th position is in address 8000 then address of 1st position will be 8002 and 2nd will be 8004 (for integer array) and this memory allocated during compile time(Static allocation)....
If anyone has any question about this blog then u can diretly ask me.
My email id:anumoysengupta@yahoo.co.in
No comments:
Post a Comment