Question: C++ C-style strings Write a simple C++ program that does the following: Declares a C-style string| named oldschoolstring and initializes it to low overhead. (Calculate,
C++ C-style strings
Write a simple C++ program that does the following: Declares a C-style string| named oldschoolstring and initializes it to "low overhead". (Calculate, in your head, how many bytes it requires.) Calculates (so not a hard-coded value) and displays how many bytes oldschoolstring actually requires Appropriately use at least 3 functions from the cstring header file Display a statement about the pros and cons of using C-style strings compared with C++ strings
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
