Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

WHAT WILL PROGRAM DISPLAY WITH ( EXPLANATION ) PLS : #include<iostream> using na

ID: 3569894 • Letter: W

Question

WHAT WILL PROGRAM DISPLAY WITH (EXPLANATION) PLS :

#include<iostream>
using namespace std;
void test(int,int=1,int=1);

void test(int,int*,int&);

void test(int *,int[],int);

const int size=4;

int main()

{

   int first=1,second=2,third=3;

   int array[size]={3,6};

   test(third,second);

   cout<<first<<" ,"<<second<<" ,"<<third<<" ,"<<endl;

   test(&second,array,size);

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

       cout<<array[i]<<" ,";

   cout<<endl;

   system("pause");

   return 0;

}

void test(int first, int second, int third)

{

   first+=10;

   second+=20;

   third+=30;

   cout<<first<<" ,"<<second<<"," <<third <<","<<endl;

}

void test(int*p,int num[] ,int size)

{

   *p=size;

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

       *(num+i) +=*p;

}

void test (int first,int*second,int &third)

{

   first+=5;

   *second+=3;

   third+=4;

}

Explanation / Answer

it will show error .u need to add

in order for the compiler to see the prototype for system("pause")

when u will include this header file ur output will be

13,22,31,

1,2,3,

7,10,4,4,