Author Topic: enum rather than a #define constant ?  (Read 42 times)

priyakumari95

  • Full Member
  • ***
  • Posts: 108
  • Welcome to Digital Marketing Forum!
    • View Profile
    • Astrology Prediction
enum rather than a #define constant ?
« 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 ?

Kajal

  • Hero Member
  • *****
  • Posts: 2473
  • Welcome to Digital Marketing Forum!
    • View Profile
Re: enum rather than a #define constant ?
« Reply #1 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.

 

Digital Marketing Forum is a do-follow forum, post and discuss IT topics here and get dofollow signature. Discuss about SEO, SMO, Directory Submission, 301 redirection, robots, social bookmarking, Web design and development.