[ create a new paste ] login | about

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

C++, pasted on Jul 21:
1
2
3
4
int main() {
   char const* str = "hi";
   char* str2 = str;
}


Output:
1
2
3
In function 'int main()':
Line 3: error: invalid conversion from 'const char*' to 'char*'
compilation terminated due to -Wfatal-errors.


Create a new paste based on this one


Comments: