So im trying to read in a certain amount of numbers as pairs. Im having a little trouble getting started. So far I have this function:

Code:
int read(double *x, double *y)
printf("enter number:\n");
scanf("%lf", &x);
printf("enter number:\n");
scanf("%lf", &y);
How do I put these values into an array that will keep the numbers paired together? Im going to be read several pairs and will then be sorting them and stuff like that, and i need the numbers to stay as pairs. Can anyone get me started?