#include <iostream>
#include <cstring>

using namespace std;

int main(){

    char str[5] = "spamalot";
    int i = 0;
    strcpy(str, "redelicious"); //copies from 2nd arg to first
    while (str[i] != '\0')
	i++;

    cout << str << " " << "length is: " << i << endl;

    str[3] = 'q';
    cout << str << " " << "length is: " << strlen(str) << endl;

    return 0;
}

