Computer Science, asked by abhaykd7750, 1 year ago

Give the C++ statements for the following:1. To create an enumerated data type that defines three vehicle names (bus, car,bike) with constant integer values as 5, 6 and 7 respectively.2. To define a new data type called fee for a standard float data type.

Answers

Answered by yasas
4
1. enum data { bus=5, car=6, bike=7 };
2. typedef float fee;

Similar questions