Write a simple program in C++ to investigate the safety of its enumeration types. Include at least

Question:

Write a simple program in C++ to investigate the safety of its enumeration types. Include at least 10 different operations on enumeration types to determine what incorrect or just silly things are legal. Now, write a C# program that does the same things and run it to determine how many of the incorrect or silly things are legal. Compare your results.

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question

Concepts Of Programming Languages

ISBN: 9780133943023

11th Edition

Authors: Robert Sebesta

Question Posted: