New course! Every coder should learn Generative AI!
Try a free lesson0
is #define and const are same?
2 Answers
+ 1
define is for string replacement, const is variable with single initialized value..
0
#define is used to declare a constant in C or C++. Const is used to declare a constant in Visual Basic.