Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions enum.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#include <iostream>
#include <stdlib.h>
using namespace std;

//enumeration is a userdefined datatype used to create integral constant.
enum Company{
Google = 1, Facebook, Twitter, Snapdeal, Microsoft //Google is initialized with value 1. First value, unless stated, takes value as 0.
};
Expand Down Expand Up @@ -35,4 +35,4 @@ int main(int argc, char const *argv[]){
}

return 0;
}
}