Chapter

Function Pointers

From ComputerScienceOne by Dr Chris Bourke

Concepts

  1. How do pointers pass values by reference in C?

    "int *ptrC = &c;\n\nsum(x, y, ptrC);\n\n//at this point c contains the value 30\n\nswap(&x, &y);\n\n//at this point, the values in x and y have been swapped\n\n// x contains 20 and y contains 10\n\nTh

Function Pointers | ComputerScienceOne | Bifalgorithm | Bifalgorithm