Example of Value Parameter That Is a Pointer
The following function will modify the integer pointed to by i_ptr.
Void make_it_42(int* i_ptr)
{
*i_ptr = 42;
}
Previous slide
Next slide
Back to first slide
View graphic version