Digital Marketing Forum, Dofollow Forum, SEO, SMO, Web Development and Design Forum

Web Design & Development => Web Development => Topic started by: priyakumari95 on April 04, 2019, 02:51:49 am


Title: enum rather than a #define constant ?
Post by: priyakumari95 on April 04, 2019, 02:51:49 am
Hello Dear,

               Please Tell Me What is the benefit of using an enum rather than a #define constant ?
Title: Re: enum rather than a #define constant ?
Post by: Kajal on June 08, 2019, 02:13:02 am
The use of an enumeration constant (enum) has many advantages over using the traditional symbolic constant style of #define. These advantages include a lower maintenance requirement, improved program readability, and better debugging capability.