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?

Undefine and redefine


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 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.


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.


How do you define difference between a 105 and is2062?

how to identify difference between A 105 and IS 2062


Define the 'potential difference between the ends of a conductor'?

The potential difference between the ends of a conductor is called voltage.


Define and explain the difference between rigidity and fluidity?

ykib


What is difference between REACTORS and vessels?

What is reactor define it briefly


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 term 'Information'?

whats the difference between data and information