#include int test = 'test'; char testStr[4]; int main() { switch (test) { case 'test': printf("here\n"); break; }; strcpy(testStr, (char*)&test); printf("%s\n", testStr); return 0; }