Int: 4 bytes Float: 4 double: 8 char: 1 boolean: 1
Dependion on the variable there are several methods to do it, this can only be applied to primitive types and arrays, for an array its the "name_of_array.length", for the arraylist this change just a little, it would be like "name_of_array_list.size()", for an int, double, float, long, byte, it would be like "name_of_variable.LENGTH" this is a public variable so you dont need a get, an finally for the String there is a method "name_of_string.length()" this would return the size of this String
A double byte is two bytes.
In Java, you can use either a float or a double
Potato
4
A plain integer variable in C under windows is 2 bytes in 16 bit windows, and 4 bytes in 32 bit windows.
eight bytes in most popular system
The total number of bytes allocated to the union will be the same number as would have been allocated if instead of the union was declared the largest member of the union. For example, if you declared: union myUnion { char c; int i; double d; } u;, then the space allocated to u will be the size of a double.
32 bits or 4 bytes and an int is not an address, it is a primitive so it directly access the data without a reference.
Int: 4 bytes Float: 4 double: 8 char: 1 boolean: 1
Dependion on the variable there are several methods to do it, this can only be applied to primitive types and arrays, for an array its the "name_of_array.length", for the arraylist this change just a little, it would be like "name_of_array_list.size()", for an int, double, float, long, byte, it would be like "name_of_variable.LENGTH" this is a public variable so you dont need a get, an finally for the String there is a method "name_of_string.length()" this would return the size of this String
Pointer is a variable, A variable that stores the address of another variable. Size of a pointer is 2 bytes.
A double byte is two bytes.
it depends on how long the word is
It depends on the context. Each database and computer language define an "integer". In the C language an integer is defined by the hardware. It can vary from 2 to 8 bytes or more.
1073741824 bytes or 10243 bytes or 230 bytes