先来一个普通版本
#include <stdio.h>
int main(void) {
printf("helloword");
return 0;
}
#include <stdio.h>
#include <iostream>
int main(void) {
std::cout << "helloword" << std::endl;
return 0;
}
然后是装X版本
#include <stdio.h>
int main(void) {
int Hel = 7103816;
int low = 5730156;
int ord = 6582895;
printf("%s%s%s\n",&hel, &low, &ord);
return 0;
}
计算机用8个2进制位来表示一个字节,所以int(4字节)等于4个char(1字节)
所以我们利用int一次填充4个字节的内存,helloword一共是9个字节,分为三组整数(字符串末尾有一个‘\0’的位置),共12字节,内存初始化完成后我们只需要墙转为