call of reference and call by value question

Hello,I am studying call by reference and call by value.I have studied the tutorial here .I have been experimenting with functions.I will be thankful if someone give me an example which uses Function(int a,int&b,int*c).
1
2
3
4
5
6
7
8
9
10
11
#include <iostream>

void Function( int a, int& b, int* c ) {
   a = 5; b = 6; *c = 7;
}

int main() {
    int x = 1, y = 2, z = 3;
    Function( x, y, &z );
    std::cout << x << ' ' << y << ' ' << z << std::endl;
}

thank you !
I am going to play with more programs like these.
Topic archived. No new replies allowed.