2 points · by gray_-_wolf · 6y ago · 1 comment
+$ cat main.c
#include <stdio.h>
int main(void) {
char str[] = { 0, 'a' };
printf("`%.*s'\n", sizeof(str), str);
return 0;
}
+$ gcc -o main main.c
+$ ./main
`'
This post was triggered by seeing comment suggesting just this (and I can't
reply since it is too old). But people should be warned.