A pointer definition does not allocate space for what's pointed at, only for the pointer, except when
assigned a literal string. For example, the definition below also creates the string literal:
char *p = "breadfruit";
Note that this only works for a string literal. You can't expect to allocate space for, for example, a float
literal:
float *pip = 3.141; /* Bzzt! won't compile */
0 comments: