#include <stdio.h>
// Define a structure in C equivalent to a class in C++
struct Point {
int x;
int y;
};
// Function to initialize a Point structure
void initPoint(struct Point *p, int x, int y) {
p->x = x;
p->y = y;
}
// Function to display coordinates of a Point structure
void displayPoint(struct Point p) {
printf("Coordinates: (%d, %d)\n", p.x, p.y);
}
int main() {
// Declare a Point structure variable
struct Point point;
// Initialize the Point structure using initPoint function
initPoint(&point, 3, 5);
// Display coordinates using displayPoint function
displayPoint(point);
return 0;
}