3 ms·
With programming, it might be best to pause for a minute and "convince" yourself by writing your own examples. If the text book says "array elements are stored
by mahmud 16y ago
With programming, it might be best to pause for a minute and "convince" yourself by writing your own examples.
If the text book says "array elements are stored in contiguous memory", pause for a second and write a snippet that iterates over an array and prints out their memory addresses. Now, was that a static or dynamic array? if it was static, how do the pointer addresses change if you created the array in the body of a function vs as a global variable? how do the pointers change if you change the array type from int to long to character?
This is the same "convince yourself" techniques that one uses to teach themselves mathematics. Math books are usually terse and require a lot of active participation in one's mind.