answersLogoWhite

0

4

User Avatar

Lorna O'Reilly

Lvl 10
2y ago

What else can I help you with?

Related Questions

How many bytes is a double variable?

There are 8 bytes in a double


How many bytes are required to store an float in ADA?

four


How many bytes required for int float double char boolean?

Int: 4 bytes Float: 4 double: 8 char: 1 boolean: 1


How many bytes take an integer variable in C under windows?

A plain integer variable in C under windows is 2 bytes in 16 bit windows, and 4 bytes in 32 bit windows.


What is the size of Float?

8 bytes


What is the function in java to find the size of given variable?

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


How many bytes in an address of an int variable?

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.


Define pointer in C?

Pointer is a variable, A variable that stores the address of another variable. Size of a pointer is 2 bytes.


What are two Java primitive types store floating-point numbers?

In Java, you can use either a float or a double


When you assign the value 5.628 into a float variable how can you avoid getting the decimal truncation warning?

When assigning a literal value, such as 5.628, to a float variable, you can avoid the decimal truncation warning by either using the float form of the constant (float var = 5.628f), typecasting the assignment (float var = (float) 5.628), or by making the variable double (double var = 5.628).


Can there be a negative float?

A float variable can store both positive and negative numbers.


Why the float takes 4 bytes in turbo c plus plus?

What's your problem with that? It's a (quasi-)standard value for a 'float'.