** CODE WRITTEN IN C **
Solution
#include <stdio.h>enum type{ sedan, hatchback, sports, offroad,};char* type2name(enum type type){ switch(type){ case sedan: return “Sedan”; case hatchback: return “Hatchback”; case offroad: return “Off_Road”; case sports: return “Sports”;
OR
OR