How do we declare a float pointer?

Options
- float *ptr;
- float ptr;
- *float ptr;
- None of the above


CORRECT ANSWER : float *ptr;

Discussion Board
Declaration of float pointer

Syntax to declare pointer variable:

data_type *pointer_name;

Using this syntax float variable declared as-
float *ptr;

Sapna 02-16-2017 05:55 AM

Pointer

- Pointer in C is any variable that can hold a memory address

Aparna 07-5-2013 08:45 AM

Write your comments


Enter the code shown above:

(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)


Advertisement