answersLogoWhite

0

How do you declare constant in Turbo C?

Updated: 8/17/2019
User Avatar

Wiki User

14y ago

Best Answer

In C there is no constant with a name. It is done with the preprocessor directive of #define as in #define pi 3.1416 The preprocesor substitutes every occurance of word pi (with blanks on either side) with 3.1416

User Avatar

Wiki User

14y ago
This answer is:
User Avatar

Add your answer:

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

How do you use define in C?

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.


Why you need to declare variable 1st in turbo c plus plus?

In C++ all names (including variables) must be declared before they can be used.


How do you declare and initialize constant arrays?

example in C: const int a [] = {10, 20, 40, 80};


What is a symbol representing value that doesn't change?

It is often represented by c for constant or k for its phonetic equivalent. But as long as you declare it as a constant, any symbol will do.


What is the differentiate of turbo c from turbo c plus plus?

Turbo C compiles c source. turbo c++ compiles c++ source code.


How turbo c executes c as well as c?

turbo c cannot execute c++ as well..since c++ is the superset of c .the cprograms can be compiled in turbo c++.


Syntax of turbo c?

+ += - -= * *= / /= % %= = == != <= >= & && | ^ ~ << <<= >> >>= , [] () are the basic operator in TURBO C


What are the basic operator in turbo c?

+ += - -= * *= / /= % %= = == != <= >= & && | ^ ~ << <<= >> >>= , [] () are the basic operator in TURBO C


What is difference between Turbo and Borland C?

turbo is word to do the programming language in c & c++ and i do no about borland


Is there any difference between turbo c and c plus plus?

turbo c is a compiler and c++ is a programming language.


What are examples of turbo c?

1. Turbo C is an example of Integrated Developing Environment. 2. Turbo C has example programs, the most important is bgidemo.c


Constance of turbo c and examples?

just try to read books about turbo c