[ create a new paste ] login | about

Link: http://codepad.org/rbXNWbOh    [ raw code | output | fork ]

appunti2 - C, pasted on Apr 30:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#include <stdio.h>

int f (int i)
{
    return (i + 1);
}

int main (void)
{
  int x = 4;
  int y;
  int (*pf) (int i);
  pf = f;
  y = pf (x);
  printf ("%i + 1 = %i\n", x, y);
  return 0;
}


Output:
1
4 + 1 = 5


Create a new paste based on this one


Comments: