ROSY said:
hello ,
what's the basic difference between #define & const.
#define contains seven characters, the first of which
is a 'hash mark' or 'pound sign' depending upon the
local naming custom, the second of which is the lowercase
form of the fourth letter of the Roman alphabet, the
third of which is the lowercase form of the fifth letter
of the Roman alphabet, the fourth of which is the lowercase
form of the sixth letter of the Roman alphabet, the fifth
of which is the lowercase form of the ninth letter of the
Roman alphabet, the sixth of which is the lower case form
of the fourteenth letter of the Roman alphabet, and the
seventh of which is the lowercase form of the fifth letter
of the Roman alphabet.
const contains five characters, the first of which
is the lowercase form of the third letter of the Roman
alphabet, the second of which is the lowercase form of
the fifteenth letter of the Roman alphabet, the third
of which is the lowercase form of the fourteenth letter
of the Roman alphabet, the fourth of which is the lowercase
form of the nineteenth letter of the Roman alphabet, and
the fifth of which is the lowercase form of the twentieth
letter of the Roman alphabet.
IOW the basic difference is that they're spelled differently.
How long will you continue to post your homework questions
here instead of studying and learning the answers yourself?
-Mike