[ create a new paste ] login | about

Link: http://codepad.org/ymVlekUM    [ raw code | output | fork ]

C++, pasted on Jul 4:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include <cstddef>
#include <iostream>
#include <string>

int main()
{
    using namespace std;

    string str = "abcde";
    char& c0 = *str.begin();
    c0 = 'z';
    cout << str << endl;

    return EXIT_SUCCESS;
}


Output:
1
zbcde


Create a new paste based on this one


Comments: