Contact: aviboots(AT)netvision.net.il
40,026 questions
51,982 answers
573 users
#include <stdio.h> typedef struct vec3 { float x, y, z; } vec3; int main(void) { vec3 v3 = {0.2, 0.5, 0.7}; printf("%.1f\n", v3.x); printf("%.1f\n", v3.y); printf("%.1f\n", v3.z); } /* run: 0.2 0.5 0.7 */