answersLogoWhite

0

What is hard coded in c plus plus?

Updated: 10/27/2022
User Avatar

Wiki User

9y ago

Best Answer

"Hard-coded" is a general term we use to mean constant as opposed to variable. Since all programs use constants to some degree, all programs can be regarded as being "hard-coded", thus the term is only meaningful within a given context. Typically, the term is used to indicate that some specific aspect of the code's data is programmer-defined rather than user-defined.

As an example, the value pi is a constant irrational value which means that we can only ever approximate its value. The value of pi has been calculated to over 10 trillion digits of precision, however 39 digits is more than enough to calculate the circumference of the universe to within 1 atom. Nuclear physicists rarely use more than 32 while NASA uses just 16 so it makes no sense to calculate pi to the nth degree of accuracy -- you can simply "hard-code" the exact precision you need using a constant.

User Avatar

Wiki User

9y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is hard coded in c plus plus?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering
Related questions

You are poor at c c plus plus programming suggest some options?

Learn hard.


Is it hard to die in Coded Arms Contagion?

It is not hard to die only if you have the right weapons


What is the use of print option in c plus plus?

C++ has no print option. The print option in your IDE allows you to print your C++ source code, thus giving you a "hard" copy of your code.


What is b plus b plus b plus c plus c plus c plus c?

b+b+b+c+c+c+c =3b+4c


What is c plus c plus 2c plus c plus c equal?

c + c + 2c + c + c = 6c


B plus b plus b plus c plus c plus c plus c equals?

b + b + b + c + c + c + c = 3b + 4c


Hindu is coded as 61257 and man is coded as 924 then indira will be coded as?

What is indira code options 454626 b 594921 c 452787 d 884572


Symplify c plus c plus c plus c?

4c


How c compiler works when it's been coded in c?

The very first C-compiler was written in some other language.


What is c plus c plus c plus c plus c?

c + c + c + c + c = 5 * c.


Primary and secondary key in c and c plus plus?

There are no "primary and secondary keys" in c and c plus plus.


Digital media content consists of computer code and what?

All digital media is coded. The operation system and all applications. Most of these are coded in assembly or c.