answersLogoWhite

0


Best Answer

2^(8*sizeof(int)), typically 2^16, 2^32 or 2^64

User Avatar

Wiki User

13y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

13y ago

A simple data type can store one value.

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How many values can int type stores?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

Write the prototype of a function' divide' that takes two integer values and returns the quotient of double type.?

Your question isn't a question, but here is the answer: double divide (int p, int q);


How character data type accept int?

An int and a char are both integral types such that a char is always guaranteed to be within the range of an int, because an int is at least as long as a short which is at least as long as a char (in bits). Converting the other way, from int to char, is not guaranteed to work, but we can guard against this by testing the int value is within the required range prior to conversion.The reason we use an int as opposed to a char in certain cases is because an int can represent values that a char cannot. This is useful in functions which would normally return a char value, but where we also need to cater for other values. Those other values could be used to indicate an error condition, for instance.


What is the data type int?

Data-type (short for integer).


What do parameters and return values have to do with methods?

Parameters and return values are a major part of methods. When defining a method, you must include information about the data types of the return value and the parameters. An example of a method definition is this: public int getSumOfNumbers( int number1, int number2, int number3 ) { return ( number1 + number2 + number3 ); } The word "int" right after the word "public" is the return type. It describes what data type will be returned by the method. In this case, it was int, or integer. The sequence of words in between the parantheses, "int number1, int number2, int number3", is the parameter list. Each of the phrases separated by a comma in the parameter list is a parameter. The first word - in this case "int" - is the data type of the parameter. It describes what type of variable the parameter will be. The second word - "number1", "number2", or "number3" - is the name of the parameter. Every parameter must have a data type and a name, and every method must have a return type: even a method that returns nothing. For example: public void evaluateNumber(int number) { if ( number > 0 ) { System.out.println( number + " is positive." ); } else if ( number < 0 ) { System.out.println( number + " is negative." ); } else { System.out.println( number + " is zero." ); } } When a method does not return data, its return type must be defined as void, as it is above.


C plus plus prog a function sum that returns the sum of all Values in the given array int sum int list int arraySize?

int sum(int list[], int arraySize) { int sum=0; for(int i=0; i<arraySize; ++i ) sum+=list[i]; return(sum); }

Related questions

What defines a data type?

the type of data which we store in a variable.. example: int a=10; /*here a is variable (data) which is of type int and stores a value 10.*/


What is a data-type?

datatype stores information pics every thing yeh!


Write the prototype of a function' divide' that takes two integer values and returns the quotient of double type.?

Your question isn't a question, but here is the answer: double divide (int p, int q);


How character data type accept int?

An int and a char are both integral types such that a char is always guaranteed to be within the range of an int, because an int is at least as long as a short which is at least as long as a char (in bits). Converting the other way, from int to char, is not guaranteed to work, but we can guard against this by testing the int value is within the required range prior to conversion.The reason we use an int as opposed to a char in certain cases is because an int can represent values that a char cannot. This is useful in functions which would normally return a char value, but where we also need to cater for other values. Those other values could be used to indicate an error condition, for instance.


What is the data type int?

Data-type (short for integer).


Give all the programs written in java regarding swapping of values?

// Swapping values of a and b int a = 1; int b = 50; int temp = a; // temp = 1 a = b; // a = 50 b = temp; // b = 1


What do parameters and return values have to do with methods?

Parameters and return values are a major part of methods. When defining a method, you must include information about the data types of the return value and the parameters. An example of a method definition is this: public int getSumOfNumbers( int number1, int number2, int number3 ) { return ( number1 + number2 + number3 ); } The word "int" right after the word "public" is the return type. It describes what data type will be returned by the method. In this case, it was int, or integer. The sequence of words in between the parantheses, "int number1, int number2, int number3", is the parameter list. Each of the phrases separated by a comma in the parameter list is a parameter. The first word - in this case "int" - is the data type of the parameter. It describes what type of variable the parameter will be. The second word - "number1", "number2", or "number3" - is the name of the parameter. Every parameter must have a data type and a name, and every method must have a return type: even a method that returns nothing. For example: public void evaluateNumber(int number) { if ( number > 0 ) { System.out.println( number + " is positive." ); } else if ( number < 0 ) { System.out.println( number + " is negative." ); } else { System.out.println( number + " is zero." ); } } When a method does not return data, its return type must be defined as void, as it is above.


What is the type modifier?

A type modifier changes the default variable type to the other possible type. An int is signed by default and may be made unsigned int a; unsigned int b;


C plus plus prog a function sum that returns the sum of all Values in the given array int sum int list int arraySize?

int sum(int list[], int arraySize) { int sum=0; for(int i=0; i<arraySize; ++i ) sum+=list[i]; return(sum); }


What does 'public static final int' mean?

public: It can be called (method) or accessed (field) from any class in any package.static: It is declared on the class rather than the object. If a method, you do not need an object to call it, it can be called directly on the class. If a field, there is only one variable for the class, not one per object.final: If a method, the method cannot be overridden. If a field, the value cannot be changed (a constant).int: If a method, the return type. If a field, the field type (it can only hold values of type 'int'). int is the primitive integer type.


What is the return type of and operator in c?

There are two AND operators in C, logical AND (&&) and bitwise AND (&). The return type for logical AND is always bool, however logical AND only works when both operands can be implicitly cast to bool. The value 0 is always regarded as being false while all non-zero values are regarded as being true. The return type for bitwise AND is that of the largest of its two operands. For instance, the return type of int & char is int (same as the l-value) while the return type of char & int is also int (same as the r-value).


Explain the basic datatypes in C?

C datatype can be categories into two part 1) Scalar data type 2) derived data type.. The scalar data type is also called basic data type they are int char float double long signed or unsigned are key word which effectively change the storing power of these data type. by default they are signed in nature..