Answer to first question:
for(i = 0; i < size; i++ )
{
scanf("%d",&p[i]);
/*p[i] is the content of element at index i and &p[i] is the address of element
at index i */
}
Or
for(i = 0; i < size; i++ )
{
scanf("%d",(p+i)); //here p+i is the address of element at index i
}
Answer to second question:
For sending this array to the function, just call the function like this:
function(p); //this is sending the address of first index of p
void function( int *p ) //prototype of the function