#include<stdio.h>
main( )
{ int num[ ] = {24, 34, 12, 44, 56, 17};
dislpay(&num[0],6);
}
display ( int *j, int n )
{
int i ;
for ( i = 0 ; i <= n - 1 ; i++ )
{
printf ( "\nelement = %d", *j ) ;
j++ ; /* increment pointer to point to next element */
}
}
The language is c, windows vista using visual c++ 2005 express.