#include<iostream>
using namespace std;
main()
{
enum{ jan=1,feb,m,a,ma,ju,jul,au,sep,oct,nov,december };//Enumeration Variables
cout<<december;
}/*If We do not Initialize the Value of Enum Then By default value is 0 ..Then Jan will start from 0 and print 11 for december month */
using namespace std;
main()
{
enum{ jan=1,feb,m,a,ma,ju,jul,au,sep,oct,nov,december };//Enumeration Variables
cout<<december;
}/*If We do not Initialize the Value of Enum Then By default value is 0 ..Then Jan will start from 0 and print 11 for december month */
No comments:
Post a Comment