Saturday, 15 March 2014

C Program Demonstration of call by value

/* Demonstration of call by value */
main( )
{
int  i ;
int  marks[ ] = { 55, 65, 75, 56, 78, 78, 90 } ;
for ( i = 0 ; i <= 6 ; i++ )
display ( marks[i] ) ;
}
display ( int  m )
{
printf ( "%d ", m ) ;
}

No comments:

Post a Comment