Saved Bookmarks
| 1. |
The array of character pointers is generally preferred over two dimensional array of characters. Justify. |
|
Answer» The array of character pointers is preferred. There are two reasons: 1. An array of pointers makes more efficient use of available memory by consuming lesser number of bytes to store the strings. 2. An array of pointers makes the manipulation of the strings much easier. One can easily exchange the positions of the strings in the array of pointers without actually touching their memory locations. |
|