Wednesday 19 March 2014

C Program for Program to pass an array to a function by address

/* Program to pass an array to a function by address */doc
main( )
{
int  i ;
int  marks[ ] = { 55, 65, 75, 56, 78, 78, 90 } ;
for ( i = 0 ; i <= 6 ; i++ )
disp ( &marks[i] ) ;
}
disp ( int  *n )
{
show ( &n ) ;
}
show ( int  *m )
{
printf("%d  ",*m)
}

No comments:

Post a Comment