answersLogoWhite

0

Why you use float pointer instead of integer pointer?

Updated: 8/19/2019
User Avatar

Wiki User

13y ago

Best Answer

It depends on what type of data you wish to manipulate.

User Avatar

Wiki User

13y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Why you use float pointer instead of integer pointer?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What happens if we use an integer pointer as a member of structure instead of structure pointer?

By declaring an integer pointer you are declaring that any non-zero reference stored in the pointer is guaranteed to be an integer reference. In order to guarantee the reference is actually a structure, the pointer must be declared as such, because casting an integer to a structure can never be regarded as being type-safe.


In pointers to store float address is we can use integer variable?

You can't address memory with floating point values. All pointers are integer values pointing to a location in memory, regardless of what type it is pointing to. If you wanted a floating point pointer, then the following should do the trick: float *floatingPointer; Note: If you wanted to ask that which integer type is big enough to hold a (flat) pointer, then the answer: ptrdiff_t, intptr_t (both signed) and size_t, uintptr_t (both unsigned).


What do Jews use instead of tooching the Torah to toch the Torah?

A yad "the pointer'


When float used and when int used in C programming?

if your calculation involves a decimal point, u must use float, otherwise you can use integer for normal purpose. for example, if u want to divide some number, lets say 9/4 then u must use float to get the answer in accurate decimal point , otherwise if u use int there, the answer will be just 2 instead of 2.25 whenever we used an integer in the program we used int. if there is any decimal part in the number then we used float.


What is the purpose of the dereference operator when used with a pointer variable?

Data type is mandatory in every variable-declaration.Example:int i; -- integerint *pi; -- integer-pointerint ai[10]; -- integer-arrayint *api[10]; -- array of integer-pointersint (*api)[10]; -- pointer to integer-array


Is the distance a pointer of a galvanometer moves determined by the amount of magnetism in the loops of the armature?

No, you have to use the reflux integer i=53^-32 which is a constant. This formula will help;


Address of a float can be assigned to a char?

No. The address of a float can only be assigned to a variable of type pointer to float. Any other (coerced) use is outside of the definition, implementation, and portability of the language.Yes, with typecast, but it is entirely pointless:float f;char c = (char)&f;


What do they use instead of there fingers to touch the Torah?

A pointer called a 'yad' is used to keep ones place when reading from the Torah.


Why do you use typecasting?

to pretend our assumption correct.. i,e.. if we gave integers at the beginning of the program and then if we want to get our result in float , we us the method called typecasting by keeping float in braces in the condition or writing integer as float , means 5 as 5.0.


What is the benefit of float data type?

Floating type numbers can't be stored in integer type variables. If we do that then their fractional part will be lost. So, we use float data type to store numbers with fractional parts.


What do they do instead of touching the Torah what is the Hebrew name?

You are thinking about a Yad. It is a pointer in the shape of a little arm, made of silver.See also the Related Link.More about the Torah-scroll


What are Memory locations assigned either the short or int can only store?

Memory locations are supposed to be stored in pointers.If you have to convert a pointer to integer, use data-type intptr_t from inttypes.h