{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

lab13a - cin>> z cout<<"Before call to...

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 >> z; cout << "Before call to foo. .." << endl; cout << "x = " << x << endl; cout << "y = " << y << endl; cout << "z = " << z << endl; // Call the function foo here cout << "After call to foo. .." << endl; cout << "x = " << x << endl; cout << "y = " << y << endl; cout << "z = " << z << endl; return 0; }...
View Full Document

{[ snackBarMessage ]}

Ask a homework question - tutors are online