Pointers can be passed to functions by using the function's parameter as a pointer type.
Here's an example:
void changeValue(int* ptr) {
*ptr = 20; // Change the value of the variable pointed to by ptr
}
int num = 10;
changeValue(&num); // Pass the address of num to the function
cout << num; // Output: 20