 |
:: عضو ذهبي ::
تاريخ التسجيل: Jul 2009
الدولة: Egypt
المشاركات: 789
|
|
نشاط [ sheimy ]
قوة السمعة:99
|
|
03-01-2011, 03:33 PM
المشاركة 2
|
|
why we use define in uc
please
|
define is an optional for your code
to be a good c programmer
you must make your code
readable
and
Can be maintained
and define do this
as an example
for good c programming code
your code must not contain a Magic number
magic Number means all number instead of 0 and 1
for example if you have a max limit and min limit
it is very goo to define them as the following
كود:
#define MAX 30
#define MIN 10
|