This repository has been archived on 2023-10-26. You can view files and clone it, but cannot push or open issues or pull requests.
VSMechatronics/Exercises/C19/DefineExamples/define_example.c

18 lines
198 B
C

#define UP 1
#define DOWN 2
int main()
{
int i = 1;
if (i == UP )
{
// Do something
}
if ( i == DOWN)
{
// Doe something else
}
return 0;
}