answersLogoWhite

0


Best Answer

# define and # undef are compiler directives in C and C++. The # define directive creates a definition for something that will be replaced multiple times in the code.

For example:

# define HELLO 5

Creates an association between HELLO and replaces it with 5 in the code (for the compiler only).

The # undef (undefine) counterpart removes the definition from what the compiler sees. It is usually specified when either the definition should no longer be used or when the definition needs to change.

User Avatar

Wiki User

14y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is the difference between define and undefine?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What to do of making define as a prefix?

Undefine


What is a prefix for define?

A prefix for "define" is "re-".


What is difference between what and define?

# define and # undef are compiler directives in C and C++. The # define directive creates a definition for something that will be replaced multiple times in the code. For example: # define HELLO 5 Creates an association between HELLO and replaces it with 5 in the code (for the compiler only). The # undef (undefine) counterpart removes the definition from what the compiler sees. It is usually specified when either the definition should no longer be used or when the definition needs to change.


What does undefined mean?

Undefined is defined. Define means to set the limits, explain. So, undefine means not to set limits or not to explain.


What is difference between define and cons Explain with suitable example?

Difference between define and cons is that, con is disadvantage, whereas define means to elaborate something fully.


How do you define difference between a 105 and is2062?

how to identify difference between A 105 and IS 2062


Define the difference between modern spiritualism and ancient spiritualism?

None.


Define the difference between molecule and compounds?

the diffrince is that they are both the same.


define the difference between common good and general welfare?

wat


What the difference between protocol stack and protocol suite?

- In your own words, define the term 'protocol' and what is the difference between protocol and protocol suite


Where can you find a diagram for replacing the thermostat?

it is undefine


What is the difference between Ursus and Ursidae?

The difference is that one is a family and one is a class. Other than that, there really is no difference, they both define bears.