answersLogoWhite

0


Best Answer

byte

User Avatar

Wiki User

13y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What number is set if the field size for a field whose data type the field size will be an integer value in the range of 0 to 255?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

What is the maximum value that can be stored in an integer in c?

if it is a signed int the the range is -32768 to 32767if its unsigned then 0 to 65535


What are advantages and disadvantages of Integer programming?

The advantages of integer arithmetic over floating point arithmetic is the absence of rounding errors. Rounding errors are an intrinsic aspect of floating point arithmetic, with the result that two or more floating point values cannot be compared for equality or inequality (or with other relational operators), as the exact same original value may be presented slightly differently by two or more floating point variables. Integer arithmetic does not show this symptom, and allows for simple and reliable comparison of numbers. However, the disadvantage of integer arithmetic is the limited value range. While scaled arithmetic (also known as fixed point arithmetic) allows for integer-based computation with a finite number of decimals, the total value range of a floating point variable is much larger. For example, a signed 32-bit integer variable can take values in the range -231..+231-1 (-2147483648..+2147483647), an IEEE 754 single precision floating point variable covers a value range of +/- 3.4028234 * 1038 in the same 32 bits.


How do you turn a positive integer into a negative integer in programming?

Store the absolute value of the desired integer in a variable. Multiply the absolute value by two. Substract the new integer by the old integer.


What is the largest value that can be stored in 64 bits represented in hexadecimal?

0xffffffffffffffff As an unsigned 64-bit integer, this represents the value 18,446,744,073,709,551,615. However, as a signed 64-bit integer, this only represents the value -1. The signed range is -9,223,372,036,854,775,808 to 9,223,372,036,854,775,807 making 0x7fffffffffffffff the largest possible positive value, and 0x8000000000000000 the smallest possible negative value.


Write a VB program for binary search?

The optimal binary search algorithm uses a sorted array as the data container. Define the range to be searched using a half-closed range of indices [begin:end). Initially, this will be the half-closed range of the whole array. The algorithm is as follows: If begin>=end, this would indicate the range is empty or invalid, thus the value cannot exist. We return the end iterator to indicate value not found. If the range has one or more elements, then we calculate the middle index of the range: middle = begin + (end - begin) / 2 Note: division takes precedence over addition. We then compare the value in the middle of the range with the value being searched. If they are equal, we are done, we simply return the middle index. Otherwise, if the value being searched is less than the middle value, we adjust the upper bound of the array so the next iteration only searches the lower half of the original range: new_end = middle Otherwise we adjust the lower bound of the array so the next iteration only searches the upper half of the range: new_begin = middle + 1 We then repeat the algorithm using the adjusted half-closed range. The algorithm can be implemented in Visual Basic as follows. Note the array, a, is passed by reference (ByRef) to prevent making an unnecessary copy of the array. The function does not make any changes to the array itself so there's no need to copy it. Function bin_search (ByRef a As Integer(), ByVal begin As Integer, ByVal end As Integer, ByVal value As Integer) As Integer ' save the end iterator (it may change later) Dim not_found As Integer = end ' while the range is valid... While begin < end ' calculate middle index Dim middle As Integer = begin + (end - begin) / 2 ' compare the middle element for equality If value = A[middle] Then ' value found! Return middle End If ' value not found, so determine which half of array to eliminate If value < A[middle] Then ' eliminate upper half (if value exists, it must be in the lower half) end = middle Else ' eliminate lower half (if value exists, it must be in upper half) begin = middle + 1 End If ' repeat algorithm... End While ' if we get this far, the range is either empty or invalid (begin>=end), so the value does not exist Return not_found End Function

Related questions

Is the absolute of a positive integer is a negative integer?

No. The absolute value of a number is the value of the number ignoring the sign - it is always positive: The absolute value of a negative number is a positive number; The absolute value of a positive number is a positive number.


How do you determine the value of one integer in comparison to the value of another integer?

Look at the places that integers have on the number line. The integer that is on the right is greater that the integer is on the left.


Is an integer a number that is a fraction?

An integer is a number that is the quotient of an integer in the numerator and 1 in the denominator. For instance: n / 1 = n is an integer We can think of "integer" as "the value in the denominator divides the value in the numerator". This also gives the integer. For instance: 18 / 2 = 9.


What is the integer value of 6.3?

6.3 is a decimal number, not an integer. Rounding it to the nearest integer will give 6.


What is the code of a c program that will read in a positive integer value and determine If the integer is a prime number and If the integer is a Fibonacci number?

see the program


Is -35 An Integer?

No, to be an integer a number must not have a decimal value.


How do you desribe the absolute value of an integer?

An integer is a whole number without decimals or fractions


What is different between constant and integer?

A constant is a value that does not change, an integer is a positive whole number.


How do you get the absolute value of positive integer?

The absoluate value of a positive integer is the integer itself.The absoluate value of a positive integer is the integer itself.The absoluate value of a positive integer is the integer itself.The absoluate value of a positive integer is the integer itself.


What is the value of A if A is an integer?

"Integer" means "whole number". From everything you've told us, all we know about 'A' is that it's a whole number.


Is -3 a real number rational irrational integer whole or a natural number?

It is a real rational negative integer number whose value is -3


When is the sum of a positive integer and a negative integer negative?

When the absolute value of the negative number is higher than the positive number.