•What does this code snippet
print:
•
•void foo( int x );
•void bar( int& x);
•int main()
•{
• int y = 5;
• cout << y << endl;
• foo(y);
• cout << y << endl;
• bar(y);
• cout << y << endl;
• return 0;
•}
•
•void foo( int y )
•{
• y = y+1;
•}
•
•void bar( int& y
)
•{
• y = y+1;
•}
•