Skip to content

Instantly share code, notes, and snippets.

@fourier
Created May 14, 2014 09:30
Show Gist options
  • Save fourier/5161305d824ca3a0ee61 to your computer and use it in GitHub Desktop.
Save fourier/5161305d824ca3a0ee61 to your computer and use it in GitHub Desktop.
#include <stdio.h>
struct point_t {
float x;
float y;
};
static point_t point = {
.x = 0.5,
.y = -1.3,
};
int main()
{
printf("x = %f, y = %f\n", point.x, point.y);
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment