blob: a5b1b04648a9ad1d2302b6a11b0619626b9c3acf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#include <stdio.h>
struct vec2 { double X, Y; };
void print(struct vec2 S) {
printf("%f, %f\n", S.X, S.Y);
}
int main() {
struct vec2 U;
U.X = .5; U.Y = 1.2;
print(U);
return 0;
}
|