Page 93 - C++
P. 93

if (L<Number)

        ARR[L] + = L;

        else

        ARR[L] * = L;

        }

        void Show(int ARR [], int Size)

        {

        for (int L=0; L<size; L++)

         (L%2!=0) ? cout<<ARR[L] <<“#” : cout<<ARR[L] <<endl;

        }

        void main ( )

        {
        int Array [] = {30,20,40,10,60,50};


        ChangeArray (3, Array, 6);
        Show (Array,6);


        }
        (e) Find the output of the following program:                                                        [2]

        # include <iostream.h>

        void main ( )

        {

        int Track [] = {10,20,30,40,}, *Striker ;

        Striker=Track ;

        Track [1] + = 30 ;

        cout<<“Striker>”<<*Striker<<endl ;

        * Striker - =10 ;

        Striker++;

        cout<<“Next @”<<*Striker <<endl ;

        Striker+=2 ;

        cout<<“last @”<<*Striker<<endl ;

        cout<<“Reset To” <<Track [0] <<endl ;

        }
   88   89   90   91   92   93   94   95   96   97   98