Skip to content

Instantly share code, notes, and snippets.

@SunXiaoShan
Created December 25, 2019 02:16
Show Gist options
  • Select an option

  • Save SunXiaoShan/a2b00fd041de48d7733ca95f62920338 to your computer and use it in GitHub Desktop.

Select an option

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