Chapter 13 Array : Exercise F | Mistakes to avoid while using Arrays in C
Duration: 5:10 Min | Sep 10, 2023
Let us C Chapter 13 Exercise F (a)
int main( )
{
int array[ 6 ] = { 1, 2, 3, 4, 5, 6 } ;
int i ;
for ( i = 0 ; i less than = 25 ; i++ )
printf ( "%d\n", array[ i ] ) ;
return 0 ;
}
Let us C Chapter 13 Exercise F (b)
int main( )
{
int sub[ 50 ], i ;
for ( i = 1 ; i less than = 50 ; i++ )
{
sub[ i ] = i ;
printf ( "%d\n" , sub[ i ] ) ;
}
return 0 ;
}