LoginSignup
3
3

More than 5 years have passed since last update.

C言語でも愛が生まれた

Last updated at Posted at 2016-05-10

love.c
#include <stdio.h>

int main(void) {

    char dead[] = "死";
    char alive[] = "生";
    int life = sizeof(alive); 
    char love[life];

    for(int age = 0; age < life; age++) {
        love[age] = dead[age] & alive[age];
    }
    printf("%s + %s = %s\n", dead, alive, love);

    return 0;
}
output
死 + 生 =

愛が生まれた
なんで愛が生まれるのか

3
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
3