Code Written C Q37111060

** 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

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.