Directives Decoded: Spotting The Odd One Out!

Directives Decoded: Spotting the Odd One Out!

What are Directives?

Directives are instructions that help control and manage the behavior of a computer program. They are commands that tell the computer to do something specific and are usually embedded within existing code. They are typically used in programming languages like C++, Java, and Python.

Types of Directives

There are two main types of directives: compilation directives and execution directives. Compilation directives are instructions to the compiler to preprocess the source code before the program is compiled. Execution directives are instructions to the processor to control the execution of the program.

Examples of Directives

Some common examples of directives include:
  • Header files
  • Defines
  • Macros
  • Conditional compilation
  • Looping
  • Branching

Which of the Following is Not a Directive?

The answer to the question "Which of the following is not a directive?" is "Variables". Variables are used to store data values in a program, but they are not directives. Directives are instructions to the compiler or processor to control the behavior of a program. Variables are used to store and manipulate data within a program.


Dated : 01-Feb-2023

Category : Education

Tags : Computer Science

Leave Your Comment