// Include necessary libraries
//#include <Arduino.h>
// Define a structure to represent a point in 2D space
struct Point {
int x;
int y;
};
// Function to initialize a Point structure
void initializePoint(Point *p, int xVal, int yVal) {
p->x = xVal;
p->y = yVal;
}
void setup() {
// Initialize Serial communication
Serial.begin(9600);
// Declare and initialize a Point structure
Point myPoint1,myPoint2;
initializePoint(&myPoint1, 3, 4);
initializePoint(&myPoint2, 5, 6);
// Print the coordinates of the Point
Serial.print("Initial Point1: (");
Serial.print(myPoint1.x);
Serial.print(", ");
Serial.print(myPoint1.y);
Serial.println(")");
// Print the coordinates of the Point
Serial.print("Initial Point2: (");
Serial.print(myPoint2.x);
Serial.print(", ");
Serial.print(myPoint2.y);
Serial.println(")");
}
void loop() {
// Empty loop as we don't need continuous operation
}