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

[ad_1]

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";

[ad_2]

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