Home
About Us
Contact Us
Bookmark
Saved Bookmarks
Current Affairs
General Knowledge
Chemical Engineering
UPSEE
BSNL
ISRO
BITSAT
Amazon
ORACLE
Verbal Ability
→
Basic C Tutorial
→
Basic C Interview Questions in Basic C Tutorial
→
What Is The Difference Between #define And Consta...
1.
What Is The Difference Between #define And Constant In C?
Answer»
A #define is used as immediate constant or as a macro. Where as the constant is a variable
WHOSE
VALUE
can not
CHANGE
.
Pointer can be
DECLARED
to a constant, but not for #define.
#define can not define
EXTERNALLY
, and there is no way to use it for availability to the linker. Where as the constant can be global .
Show Answer
Discussion
No Comment Found
Post Comment
Related InterviewSolutions
Define Register Variables. What Are The Advantages Of Using Register Variables?
What Are Storage Class In C?
What Is The Difference Between #define And Constant In C?
What Is The Purpose Of Main( ) Function?
What Is Static Memory Allocation And Dynamic Memory Allocation?
Explain Memory Leak?
What Is A Const Pointer?
Define Void Pointer?
What Is The Difference Between Char *a And Char A[]?
List Out Differences Between Strdup() And Strcpy()?
Reply to Comment
×
Name
*
Email
*
Comment
*
Submit Reply
Your experience on this site will be improved by allowing cookies. Read
Cookie Policy
Reject
Allow cookies