InterviewSolution
| 1. |
What Is The Difference Between A Dictionary And An Array? |
|
Answer» A dictionary can't be multidimensional but an array can be. A dictionary has extra methods to add new items and check for EXISTING items. When you delete a particular ITEM from a dictionary, all the subsequent items automatically shift up. For example, if you delete the second item in a three-item dictionary, the original third item automatically shifts up into the second-item slot. A dictionary can't be multidimensional but an array can be. A dictionary has extra methods to add new items and check for existing items. When you delete a particular item from a dictionary, all the subsequent items automatically shift up. For example, if you delete the second item in a three-item dictionary, the original third item automatically shifts up into the second-item slot. |
|