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

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