Usage of Enum in C Language
This article illustrates the usage of the enum keyword in the C language. 【Paid】 STM32 Embedded Resource Package Used to define multiple constants simultaneously An example of defining months using enum is as follows. #include <stdio.h> enum week {Mon=1, Tue, Wed, Thu, Fri, Sat, Sun}; int main() { printf("%d", Tue); return 0; } By defining … Read more