answersLogoWhite

0


Best Answer

true

User Avatar

Wiki User

10y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: In many languages it is an error to assign a real number to an integer variable True or False?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

What if -1 is assigned to a unsigned variable in C plus plus?

If you assign -1 to a unsigned variable it will contain the biggest number its able to hold. For example if you assign -1 to a unsigned int it will be 4294967295 as its the biggest number a unsigned int can hold.


Which of the following is not a variable data type real integer number or string?

FILE, struct stat and struct tm are some examples.


Can you add a variable with a number?

Yes, IF the variable has been declared, has a value, and is of a numerical type such that your addition operator can perform the operation on the number and the value of that type variable. The compiler or interpreter will look up the variable's value, substitute it for the variable, and perform the addition just as if your statement used two numbers. First example: If your number is an integer and your variable is of type real, almost any addition operator can successfully add the two. Second example: If your number is a real and your variable is a character type (with a value, say, of "Smith"), the addition will obviously fail. In many languages, however, variables of type Boolean may be handled arithmetically, as the value True equals 1 and False is zero.


What is short integer?

In computer programming, a variable can be (among other things) an integer or a long integer. An integer can be any whole number in the range of -32,768 to 32,767 A long integer can be any whole number in the range of -2,147,483,648 tp 2,147,483,647 I have never heard of an "integer" variable being called a "short integer" but it makes a kind of sense. Note: The size of integer types is platform-dependent, but usually: short: 16 bits int: 32 bits (16 in archaic systems: MSDOS OS Windows16) long: 32 bits (64 in unix64) long long: 64 bits


How do you find the smallest value in a set of numbers in qbasic?

Store the numbers in a suitable container such as an array. Assume the first number is the smallest and assign its value to a local variable. Traverse the remainder of the sequence, comparing each element's value to the stored value. If an element has a lower value, assign its value to the local variable. When the sequence is fully traversed, the local variable will hold the value of the smallest value in the sequence. Return that value.

Related questions

What happens if you assign a negative number to an unsigned variable?

You will get something like MAX_INT - number you are trying to assign.


What is the algebraic expression for 12 divided by a number?

You have to assign some variable to "some number", for example "x". Then your expression becomes 12 / x.You have to assign some variable to "some number", for example "x". Then your expression becomes 12 / x.You have to assign some variable to "some number", for example "x". Then your expression becomes 12 / x.You have to assign some variable to "some number", for example "x". Then your expression becomes 12 / x.


What are variable raised to whole number powers?

They are the integer powers of that variable.


What is the code required to convert an integer variable to a string variable in Java?

There are several different methods to convert an integer variable to a string variable in Java. For example, one can use the following code to convert an integer variable to a string variable: Integer.toString(number)


What if -1 is assigned to a unsigned variable in C plus plus?

If you assign -1 to a unsigned variable it will contain the biggest number its able to hold. For example if you assign -1 to a unsigned int it will be 4294967295 as its the biggest number a unsigned int can hold.


What is non -integer?

Well a non-integer is basically a not a number. It can be a variable, symbol and etc.


How can a variable be used in JAVA?

A variable is just a memory location of a valuea variable is accessed by a namesuppose of the integer type u got a variable aSoDECLARATION-int a;and then store any integer value to a.a=4;or take input from user.then perform any arithmetic function on a.a+5;returns 9;there are different variables but the essential concept behind variables is the same!


How do you solve a problem with an integer and a variable when the variable is not in place of a number?

A variable must be in place of a number, or representing a range of possible values. Otherwise, it is a constant and so yous imply replace it with the value of that constant.


Which of the following is not a variable data type real integer number or string?

FILE, struct stat and struct tm are some examples.


In most languages the first character of a variable name cannot be a number?

True


Is A value with a decimal portion automatically rounded to a whole number when assigned to an Integer variable?

Yes.


What is the real number of how many licks does it take to get to the center of a totsie pop?

It is a variable positive integer.