answersLogoWhite

0

How do you use define in C?

Updated: 8/16/2019
User Avatar

Wiki User

16y ago

Best Answer

Just type declare then the variable that you desire to assigned a certain constant value on it. Just type declare then the variable that you desire to assigned a certain constant value on it.

User Avatar

Wiki User

16y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How do you use define in C?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is the use of define key word in c?

Actually, the preprocessor is not part of the C compiler, but here you are: #define is meant to define symbols. Examples #define NULL ((void *)0) #define getchar() getc(stdin)


When you can use percent D in c language?

To define any integer type value.


How can override the precedence define by c language?

Not possible; use (brackets) instead.


What is a drawback of structures in the C language?

Nothing. If you use structured data, you define a structto store it.


Which class is used to define the controls in c sharp?

.Ascx class file is used to define the controls in c#


What is the use of type def in c?

A typedef is used to define a type. The clue is in the name: typedef = type definition.


What does truefalse mean in C programming?

Nothing. You may define them, though: #define true 1 #define false 0


C program to find largest among three numbers?

#define max2(a,b) (b>a?b:a) #define max3(a,b,c) (max2(a,max(b,c)))


How do you write a c program to calculate the circumference of the circle using macros with parameters?

// macro definitions: #define PI 3.14159265358979323846 #define CIRCUMFERENCE(radius) (2. * (radius) * PI) // use this as in CIRCUMFERENCE(21.34)


Where is it possible to define a function in c?

yes you looser


Define C as an object oriented language?

Don't.


Define land use patterns in geography?

Land use patterns in geography refer to the ways in which human activities and structures are distributed across a landscape. These patterns can include residential areas, agricultural lands, industrial zones, commercial areas, and natural areas. Studying land use patterns can help geographers understand how humans interact with the environment and how land is utilized for different purposes.