#include <iostream>
    #include <string>
    #include <cmath>
    #include <algorithm>
    #include <iomanip>
    #include <cstring>
    using namespace std;
    int main() {
        const int size = 15;
        char array1[size];
        char array2[size] = "four";
        cout << array2[3]='\0' << endl;
        return 0;
    }
Hello, I am new to C++, I am learning the C-string, my question is why
array2[3] ='\0' can not be use inside the cout, the error I get is:
 reference to overloaded function could not be resolved.
It works fine if it's outside of cout. thank you :)
 
    