Revision Worksheet 1-Class 12

download Revision Worksheet 1-Class 12

of 1

description

qwertyuiop

Transcript of Revision Worksheet 1-Class 12

  • 1

    REVISION WORKSHEET 1 CLASS 12

    Answer the following questions :- 1- Find the output of the following program:

    #include void see(int b[], int v) { for (int t = 1;t < v; t++)

    b[t-1] =b[t-1]+ b[t];

    } void main() { int x[3] = {6,7,8}, y[3]={1,2,3,4}, z[]={11,12};

    see(x, 3); see(y, 4); see(z, 2);

    for (int w = 0;w < 3;w++) cout