Skip to content
Snippets Groups Projects
Select Git revision
  • e5a55ae5d895b36506b339f1f24833424616305f
  • master default protected
  • 2018ws
  • 2017ws
  • 2016ws
5 results

pointers-01.c

Blame
  • Forked from Peter Gerwinski / hp
    Source project has a limited visibility.
    pointers-01.c 175 B
    #include <stdio.h>
    
    void calc_answer (int *a)
    {
      *a = 42;
    }
    
    int main (void)
    {
      int answer;
      calc_answer (&answer);
      printf ("The answer is %d.\n", answer);
      return 0;
    }