Skip to content

Instantly share code, notes, and snippets.

@sakibguy
Forked from preslavmihaylov/macros-in-c-1.c
Created March 8, 2021 15:45
Show Gist options
  • Save sakibguy/856e540b1f24975ce351a3084862958c to your computer and use it in GitHub Desktop.
Save sakibguy/856e540b1f24975ce351a3084862958c to your computer and use it in GitHub Desktop.
#include <stdio.h>
#define SUM(x, y) (x + y)
int main(int argc, char *argv[])
{
int a = 5;
int b = 10;
int sum = SUM(a, b);
printf("%d\n", sum);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment