Menu

[Solved] C Type Program Running Program Change Question Marks Numbers 1 5 Indicating Order Line Ex Q37234647

C++

  1. Type in the above program . Before running theprogram, change each of the question marks to the numbers1 through 5 indicating the order in which that line will beexecuted. Run the program and check your numbers. Fix and rerun ifnecessary. Submit the program and the output.

#include <iostream>

using namespace std;

//prototypes

void DemonstrateProc1();

void DemonstrateProc2(int num);

int main()

{

cout << “?. Execution starts with main. ” <<endl;

DemonstrateProc1();

      cout << “?. Then we comehere. ” << endl;

      DemonstrateProc2(100);

      cout << “?. Finally we comehere. “<< endl;

    return 0;

}

//****************************

void DemonstrateProc1()

{

    cout << “?. This is a sampleprocedure.” << endl;

}

//****************************

void DemonstrateProc2(int num)

{

    cout << “?. This is another sampleprocedure. ” << endl;

      cout << ”   numis an argument or parameter. ” << endl;

      cout << ”   Thevalue of num is ” << num << endl;

}

Expert Answer


Answer to C++ Type in the above program . Before running the program, change each of the question marks to the numbers 1 through 5… . . .

OR


Leave a Reply

Your email address will not be published. Required fields are marked *