answersLogoWhite

0

if it is a signed int the the range is -32768 to 32767


if its unsigned then 0 to 65535

User Avatar

Wiki User

15y ago

What else can I help you with?

Related Questions

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


Write a function in c that returns the largest value stored in an array-of-int Test the function in a simple program?

int max(int arr[], int arrSize){int maximum = arr[0];for (int i = 0; i < arrSize; i++){if (maximum < arr[i]){maximum = arr;}}return maximum;}


Can an integer data type in c plus plus stores character value?

no


What is the maximum charge that can be stored on the capacitor?

The maximum charge that can be stored on a capacitor is determined by the capacitance of the capacitor and the voltage applied to it. The formula to calculate the maximum charge is Q CV, where Q is the charge, C is the capacitance, and V is the voltage.


When you can use percent D in c language?

To define any integer type value.


What is formula for maximum energy stored in capacitor?

The formula for maximum energy stored in a capacitor is given by ( E = \frac{1}{2}CV^2 ), where ( E ) is the energy stored, ( C ) is the capacitance of the capacitor, and ( V ) is the voltage across the capacitor.


What does a char store?

In JavaA char in Java is a 16-bit integer, which maps to a subset of Unicode.In C A char in C is an 8-bit integer, which maps to standard ASCII.Note that in both Java and in C you can use a char value like a normal integer type: char c = 48;


Can an float value be assigned to int variable?

Yes, an integer can be assigned as a float value.But it get stored as a float value, that is an implicit type conversion occurs during compilation.Smaller data types are convertible to larger data types.eg:float b=12;// an integer constant is assigned to a float variableprintf("%f",b);// when printing b it will print as 12.000000


What is L value error in C?

When there is no addressable value in program, then compiler will give lvalue error. Lvalue or location value is an address that is stored into while rvalue is the "read" value, ie., value of a constant or the value stored at a location. In the assignment a = 31; we have the lvalue of a used on the left hand side and the integer contant value 31 assigned to this location. In the assignment b = a; we have the rvalue of a (31) used to assign to the lvalue of b . So depending on which side of an assignment, we use the variable a , we get two different behaviors


Where is a boxed value type stored in managed heap?

In a managed heap, a boxed value type is stored as an object. When a value type (like an integer or a struct) is boxed, it is wrapped in an object and allocated memory on the heap, allowing it to be treated like a reference type. The original value type remains on the stack or in its original location, while the boxed version on the heap holds a reference to this value. This allows for polymorphism and other object-oriented features in languages like C#.


In c plus plus you cannot assign integer value to enum?

That is correct - In c plus plus you cannot assign integer value to enum - You can only assign an enum value to an enum. Even though an enum looks like an integer, it is not. It is an enum, and C++ implements strict type checking to reduce the probability of bad programming practices. enum ColorCode {black, brown, red, orange, yellow, green, blue, violet, grey, white}; ColorCode myColorCode; myColorCode = yellow; Even though yellow has an integer value of 4, you cannot say myColorCode = 4.


What is the total electric-field energy stored in the capacitor when charged to its maximum capacity?

The total electric-field energy stored in a capacitor when charged to its maximum capacity is equal to the energy stored in the electric field between the capacitor plates. This energy can be calculated using the formula: E 1/2 C V2, where E is the energy stored, C is the capacitance of the capacitor, and V is the voltage across the capacitor plates.