[Solved] How to use string literals without using arrays and #define preprocessor directive?


Make the arrays static so they will not be allocated on the stack.

static const char fetch[] = "fetch";
static const char push[] = "push";
static const char quit[] = "quit";

solved How to use string literals without using arrays and #define preprocessor directive?