The program declares a string
, a size_t
and two char
pointers (lines 8–11). The string string1
is initialized to "STRINGS"
, ptr1
is initialized to nullptr
and length
is initialized to the length of string1
. Memory of sufficient size to hold ...
Get C++ How to Program, 10/e now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.