Skip to content

Instantly share code, notes, and snippets.

@zetavg
Created June 14, 2017 11:02
Show Gist options
  • Select an option

  • Save zetavg/394fadbd46d35bd735dfb5653caf77a1 to your computer and use it in GitHub Desktop.

Select an option

Save zetavg/394fadbd46d35bd735dfb5653caf77a1 to your computer and use it in GitHub Desktop.
#include <stdio.h>
int add(int a, int b) {
return a + b;
}
int main() {
int a = 1;
int b = 2;
printf("a = %d\n", a);
printf("b = %d\n", b);
int a_plus_b = add(a, b);
printf("a + b = %d\n", a_plus_b);
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment