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/C19/define_example.c
2022-04-08 16:12:38 +01:00

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;
}