Simulation Core
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

7 line
190 B

  1. #include <stdio.h>
  2. void addnums( int* a, int* b )
  3. {
  4. int c = (*a) + (*b); /* convert pointers to values, then add them */
  5. printf("sum of %i and %i is %i\n", (*a), (*b), c );
  6. }