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

โˆ™ 2009-12-17 22:42:07
This answer is:
๐Ÿ™
0
๐Ÿคจ
0
๐Ÿ˜ฎ
0
User Avatar
Study guides
๐Ÿ““
See all Study Guides
โœ๏ธ
Create a Study Guide

Add your answer:

Earn +20 pts
Q: What is the difference between define and undefine?
Write your answer...
Submit
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 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


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.


Difference between rebate and discount?

define rebate


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

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


What is difference between REACTORS and vessels?

What is reactor define it briefly


Define and explain the difference between rigidity and fluidity?

ykib


Define the difference between molecule and compounds?

the diffrince is that they are both the same.


Define the difference between modern spiritualism and ancient spiritualism?

None.


Define the term 'Information'?

whats the difference between data and information


What is the distance between land and earth?

Define the difference between land and earth, which part of the layers of earth, you define as land and earth, such as the actual magma, or the upper crust?


What is difference between define and typedef in c plus plus?

#define is a preprocessor directive used to declare macros. typedef is a C++ keyword to define a data type.


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.


Explain difference between total and marginal utility. Define UTILITY. How do consumers maximize UTILITY?

explain the difference between total utility and marginal utility


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


What is the difference between class and object in c plus plus?

There is no difference; to define an object in C++ you use the 'class' definition


Define the difference between remedial reading and developmental reading?

guess what? i don't know.


Where can you find a diagram for replacing the thermostat?

it is undefine


What is the difference between the normal animal cell and the bone cell?

What you define as normal a normal animal cell? You have to define this first, before asking a question.


What is the difference between simple and long chain polymer?

simple polymer are define as themosofning plastic where as long chain polymer define as thermosetting plastic


What is the difference between a simple and long chain polymer?

simple polymer are define as themosofning plastic where as long chain polymer define as thermosetting plastic


Define the difference between individual and collaborative writing process?

one is individual and collaborative isn't


What is the difference between strategic control and financial control?

Define staregic control and financial control