You are viewing a single comment's thread. Return to all comments →
int add(int x, int y) { return x + y; }
int main() { int a = 10, b = 20, sum; sum = add(a, b); printf("The sum of %d and %d is %d\n", a, b, sum); return 0; }
Seems like cookies are disabled on this browser, please enable them to open this website
Functions in C
You are viewing a single comment's thread. Return to all comments →
include
int add(int x, int y) { return x + y; }
int main() { int a = 10, b = 20, sum; sum = add(a, b); printf("The sum of %d and %d is %d\n", a, b, sum); return 0; }