#include typedef struct { float x,y,z; }Vec3f; void hello (float a, Vec3f b) { printf("%.2f, %.2f, %.2f, %.2f\n", a, b.x, b.y, b.z); } int main() { printf("Hello, world!\n"); Vec3f one_two_three = {1.1f,2.2f,3.3f}; hello(4.1f, one_two_three); //Outputs 4.10, 1.10, 2.20, 1.10 instead of 4.10, 1.10, 2.20, 3.30 return 0; }