lab13a - cin >> z; cout...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
// Program for Lab 13 - parameter exploration #include <iostream.h> { a = a * 2; b = 7; c = c + a; cout << "In foo. .." << endl; cout << "a = " << a << endl; cout << "b = " << b << endl; cout << "c = " << c << endl; } int main() { int x; int y; int z; cout << "Enter x: "; cin >> x; cout << "Enter y: "; cin >> y; cout << "Enter z: ";
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: cin &gt;&gt; z; cout &lt;&lt; &quot;Before call to foo. ..&quot; &lt;&lt; endl; cout &lt;&lt; &quot;x = &quot; &lt;&lt; x &lt;&lt; endl; cout &lt;&lt; &quot;y = &quot; &lt;&lt; y &lt;&lt; endl; cout &lt;&lt; &quot;z = &quot; &lt;&lt; z &lt;&lt; endl; // Call the function foo here cout &lt;&lt; &quot;After call to foo. ..&quot; &lt;&lt; endl; cout &lt;&lt; &quot;x = &quot; &lt;&lt; x &lt;&lt; endl; cout &lt;&lt; &quot;y = &quot; &lt;&lt; y &lt;&lt; endl; cout &lt;&lt; &quot;z = &quot; &lt;&lt; z &lt;&lt; endl; return 0; }...
View Full Document

This document was uploaded on 02/10/2011.

Ask a homework question - tutors are online