I hope this isn't a stupid question, but say I want to create a char* in C called "Hello World", using only a double. I want to do this by abusing type confusion, so that in one file I might have something like this:
char test[12];
int main() {
printf("%s\n", test);
}
and in the other file I'd have this:
double test = some_random_double;
So my issue is therefore in picking a double that converts into the Ascii string "Hello World".
Are there any suggestions? I thought I would go backwards and convert the ascii string into hex or binary, and then try converting said hex/binary into a float format, but I can't figure out how to do so.