Created
January 29, 2017 07:41
-
-
Save ryzokuken/e9d9c28a88ddd050c81b4378dddb8b32 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
struct Complex { | |
int real; | |
int imaginary; | |
} | |
struct Complex addComplex(struct Complex* a, struct Complex* b) { | |
struct Complex c; | |
c.real = a->real + b->real; | |
c.imaginary = a->imaginary + b->imaginary; | |
return c; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment