Simulation Core
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

7 lines
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. }