

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


function : int foo( int & x, int y ) { int z;
x = y + 5; y = x + 5; z = x + y;
cout << x << endl; cout << y << endl; cout << z << endl;
return x; }
function : int main( ) { int a = 5; int b = 10; int c;
c = foo( a, b );
cout << a << endl; cout << b << endl; cout << c << endl;
return 0; }
a %fp- b %fp- c %fp-
c = foo( a, b );
x %fp+ y %fp+
return x;
void foo( int a, int b, int c )
{
int d; short e; char f[3]; double g; int h;
/* function body */
}