From c9b183015a207c59f36fbc6fc016a26f57f3936e Mon Sep 17 00:00:00 2001 From: dskaran95 <33151203+dskaran95@users.noreply.github.com> Date: Fri, 27 Oct 2017 20:24:31 +0530 Subject: [PATCH] Update enum.cpp --- enum.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 +}