/*WAP to pass an array to a function by address*/
#include<stdio.h>
#include<conio.h>
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