What is the function of the #define preprocessor directive in a C program?

  • Controls the execution flow of the program
  • Declares a variable within the program
  • Defines a constant value for use in the program
  • Includes a header file in the program
The #define directive is used to define constants. It allows you to specify a constant value that is used throughout the program, making it easier to maintain and modify the code.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *