next up previous
Next: Call by Value III Up: Pointer Puzzles Previous: Call by Value

Call by Value II

void func(int r)
{
    cout << r << endl;
}

main()
{
    int i=3;
    func(i);
}

Programm ist richtig!
Ausgabe: 3


next up previous
Next: Call by Value III Up: Pointer Puzzles Previous: Call by Value

© 1997 Gottfried Rudorfer, C++-AG, Lehrveranstaltungen, Abteilung für Angewandte Informatik, Wirtschaftsuniversität Wien, 3/19/1998