Chapter - 10: Strings

How many bytes in memory would be occupied by the following array of pointers to strings? How many bytes would be required to store the same strings, if they are stored in a two-dimensional character array?


E
Sections
1
Exercises
char *mess[ ] = {
 "Hammer and tongs",
 "Tooth and nail",
 "Spit and polish",
 "You and C"
 } ; 

Ans: 58


© 2021 Garbage Valuegarbage value logo