Love was born in the union of C

http://ideone.com/J0Bw6Y

python


#include <stdio.h>
#include <string.h>

int main(void) {

  union {
    long l;
    char s[sizeof(long)];
  } t1, t2, t3;
  strcpy(t1.s, "death");
  strcpy(t2.s, "Raw");
  t3.l = t1.l & t2.l;
  printf("%s + %s = %s\n", t1.s, t2.s, t3.s);

  return 0;
}

output


death+Raw=Love

Love was born Why love is born

Recommended Posts