Explain the disadvantages and advantages of having strings b

Explain the disadvantages and advantages of having strings be primitive types versus array types.

Solution

Simplest possible storage, conserves space

advantages and disadvantages of having string be primitive types versus array types
Dynamic memory allocation. User need not to define the size of the string. Static memory allocation. User need not to define the size of the string at comlile time.
boundary issues are handled by itself boundary need to handled.
less faster and efficient at runtime more faster and efficient at runtime.
may lead to heap issue at a particular time it will be detected by compiler at compile time about the heap space.
not as simple

Simplest possible storage, conserves space

 Explain the disadvantages and advantages of having strings be primitive types versus array types.SolutionSimplest possible storage, conserves space advantages

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site