Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int add (int x, int y);
- int main(void)
- {
- int a =10, b =20;
- int res;
- res = add(a,b);
- printf("result : %d\n", res);
- return 0;
- }
- int add (int x, int y)
- {
- int temp;
- temp = x + y;
- return temp;
- }
Add Comment
Please, Sign In to add comment