What are the three forms a c-style string can take in a c


Problem

1. What are the three forms a C-style string can take in a C++ program?

2. Write a function that has this prototype:

int replace (char * str, char c1, char c2);

Have the function replace every occurrence of c1 in the string str with c2, and have the function return the number of replacements it makes.

Request for Solution File

Ask an Expert for Answer!!
C/C++ Programming: What are the three forms a c-style string can take in a c
Reference No:- TGS02635165

Expected delivery within 24 Hours