diff --git a/enum.cpp b/enum.cpp index 1670337..74269bc 100644 --- a/enum.cpp +++ b/enum.cpp @@ -1,7 +1,7 @@ #include #include using namespace std; - +//enum (enumeration) is a userdefined datatype used to create integral constant in C++. enum Company{ Google = 1, Facebook, Twitter, Snapdeal, Microsoft //Google is initialized with value 1. First value, unless stated, takes value as 0. }; @@ -35,4 +35,4 @@ int main(int argc, char const *argv[]){ } return 0; -} \ No newline at end of file +}