Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Function pointerFunction example
- // http://facebook.com/dinophanhk
- #include "stdio.h"
- void pointerFunction(int *iNumber) {
- *iNumber *= 2;
- }
- int main(void) {
- int iA;
- printf("Enter number: ");
- scanf("%d", &iA);
- pointerFunction(&iA);
- printf("Result: %d.\n", iA);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement