Translations:Development/Tutorials/Common Programming Mistakes/36/pt-br: Difference between revisions
(Created page with "</syntaxhighlight>") |
No edit summary |
||
Line 1: | Line 1: | ||
<syntaxhighlight lang="cpp-qt"> | |||
// Correct! | |||
static const char SomeString[] = "Example"; | |||
// Wrong! | |||
static const char* SomeString = "Example"; | |||
// Wrong! | |||
#define SomeString "Example" | |||
</syntaxhighlight> | </syntaxhighlight> |
Latest revision as of 21:24, 3 December 2019
// Correct!
static const char SomeString[] = "Example";
// Wrong!
static const char* SomeString = "Example";
// Wrong!
#define SomeString "Example"