Skip to content

Instantly share code, notes, and snippets.

@sakibguy
Forked from preslavmihaylov/macros-in-c-3.c
Created March 8, 2021 15:46
Show Gist options
  • Save sakibguy/900e25c9f34f50eca14481a47eaaa021 to your computer and use it in GitHub Desktop.
Save sakibguy/900e25c9f34f50eca14481a47eaaa021 to your computer and use it in GitHub Desktop.
#include <stdio.h>
void bar()
{
int var = 10;
printf("var in bar: %d\n", var);
}
void foo()
{
int var = 5;
printf("var in foo: %d\n", var);
bar();
}
int main(int argc, char *argv[])
{
foo();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment