MUstar

IoT C언어 0424 - 7-1

Apr 24th, 2017
30
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <stdio.h>
  2. int add (int x, int y);
  3. int main(void)
  4. {
  5.     int a =10, b =20;
  6.     int res;
  7.  
  8.     res = add(a,b);
  9.     printf("result : %d\n", res);
  10.  
  11.     return 0;
  12. }
  13.  
  14. int add (int x, int y)
  15. {
  16.     int temp;
  17.     temp = x + y;
  18.  
  19.     return temp;
  20. }
RAW Paste Data