Code:
#include <stdio.h>
	typedef struct
	{
		int x;
		int y;
	}POINT;


	void display(POINT);


	int main()
	{
		int i;
		POINT p1[10];
		for (i = 0; i < 10;i++)
		{
			p1[i].x =i*2;      // 
			p1[i].y = i * 4;   //
		}
		display(p1);
		
	}
	void display(POINT p[])
	{
		for (int i = 0; i < 10;i++)
		printf("The coordinates of the point are: %d %d \n", p[i].x, p[i].y);
	}
display(p1); seems not working to pass to function display I tried p1[] not working any advise please thank you.