Question

What is the purpose of the #define directive in programming languages like C and C++?

A It is used to declare a new variable and its data type in the program.
B It is used to create a macro that defines a constant value or a code snippet that can be reused throughout the program.
C It is used to import libraries and modules into the program.
D It is used to initialize a new object or class instance with specific values.
E It is used to specify the return type of a function and its parameters.
Practice Next

Hey! Ask a query