Use the following C++ program code to answer questions 5-7 1 sinclude ciostream 2 using namespace std; 4 int x, y; 5 void testproc(int &, int, int); 7 void main() 8 ( int w, z; 10 11 W - 4; X - w; y-...

Answer 7th completely
Use the following C++ program code to answer questions 5-7<br>1 sinclude ciostream<br>2 using namespace std;<br>4 int x, y;<br>5 void testproc(int &, int, int);<br>7 void main()<br>8 (<br>int w, z;<br>10<br>11<br>W - 4;<br>X - w;<br>y- x + 6;<br>ZEX-y;<br>testproc (w, y, z);<br>12<br>13<br>14<br>15<br>16<br>cout < w c<

Extracted text: Use the following C++ program code to answer questions 5-7 1 sinclude ciostream 2 using namespace std; 4 int x, y; 5 void testproc(int &, int, int); 7 void main() 8 ( int w, z; 10 11 W - 4; X - w; y- x + 6; ZEX-y; testproc (w, y, z); 12 13 14 15 16 cout < w=""><">< x=""><" «z="" «="" endl;="" 17="" return;="" 18="" }="" 19="" 28="" void="" testproc(int="" &p,="" int="" q,="" int="" r)="" 21="" {="" 22="" int="" z;="" 23="" x="" -="" 4;="" y="x+6;" z="" -="" x="" -="" y;="" 9="r;" p-9="" +r="" +="" z;="" 24="" 25="" 26="" 27="" 5.="" tell="" which="" line="" numbers="" represent="" the="" following="" parts="" of="" the="" functions:="" a.="" which="" line="" is="" the="" heading="" definition="" for="" the="" function="" main?="" b.="" which="" line="" is="" the="" heading="" definition="" for="" the="" function="" testproc?="" c.="" which="" line="" represents="" the="" prototype="" declaration="" of="" the="" function="" testproc?="" d.="" which="" line="" represents="" the="" call="" to="" the="" function="" testproc?="" e.="" in="" which="" line="" are="" the="" formal="" arguments="" for="" testproc="" defined?="" f.="" in="" which="" line="" are="" the="" actual="" arguments="" for="" testproc="" defined?="" 6.="" answer="" the="" following="" questions="" about="" the="" scope="" of="" the="" variables="" in="" the="" functions:="" a.="" what="" are="" the="" global="" variables="" (if="" any)="" in="" this="" program?="" b.="" what="" is/are="" the="" local="" variables="" in="" the="" main="" functions?="" c.="" what="" is/are="" the="" local="" variable="" in="" the="" testproc="" function?="" d.="" what="" are="" the="" formal="" arguments="" to="" testproc?="" e.="" what="" are="" the="" actual="" arguments="" to="" testproc?="" f.="" which="" arguments="" are="" value="" arguments?="" g.="" which="" arguments="" are="" reference="" arguments?="" 7.="" what="" is="" the="" output="" of="" the="" program="" when="" it="" is="">

Jun 09, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here