// Demonstration of structs // // Written by: Angela Finlayson // Date: 19/09/2024 // #include struct coordinate { int x; int y; }; int main(void) { // Declare 2 variables of // type struct coordinate struct coordinate point_1; struct coordinate point_2; point_1.x = 0; point_1.y = 0; point_2.x = 10; point_2.y = -5; printf("(%d, %d)\n", point_1.x, point_1.y); printf("(%d, %d)\n", point_2.x, point_2.y); // Can we use = or maths on these? return 0; }