Hi all,
Can I assign a value to the symbol as possible in C or not for #define?
Hi all,
Can I assign a value to the symbol as possible in C or not for #define?
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Shweta LodhaPosted Feb 5, 2016, 10:31 PM
Hi Nithika,
The #define directive cannot be used to declare constant values as is typically done in C and C++. It is used to define a symbol used at compile time. More info:
Sujeet SumanPosted Feb 5, 2016, 11:28 PM