![]() |
|
[C] a value of type "const char *" cannot be used to initialize an entity of type "char * - Printable Version +- Hack Forums (https://hackforums.net) +-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444) +--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151) +---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118) +---- Thread: [C] a value of type "const char *" cannot be used to initialize an entity of type "char * (/showthread.php?tid=6214724) |
a value of type "const char *" cannot be used to initialize an entity of type "char * - maryous - Jul 24, 2022 Hello! I'm trying to solve this issue E0144 a value of type "const char *" cannot be used to initialize an entity of type "char *" It does compile on different compilers but it gives me errors on visual studio 2019 it doesn't compile Errors C2440 'initializing': cannot convert from 'const char [9]' to 'char *' E0144 a value of type "const char *" cannot be used to initialize an entity of type "char *" I tried solving the issue but can't seem to understand it. Code #include<iostream> |