1.

What Is Significance Of " * " ?

Answer»

The symbol “*” tells the COMPUTER that you are declaring a pointer. Actually it DEPENDS on CONTEXT.

In a statement like int *ptr; the ‘*’ tells that you are declaring a pointer.
In a statement like int i = *ptr; it tells that you want to assign value POINTED to by ptr to variable i.
The symbol “*” is also called as Indirection OPERATOR/ Dereferencing Operator.

The symbol “*” tells the computer that you are declaring a pointer. Actually it depends on context.

In a statement like int *ptr; the ‘*’ tells that you are declaring a pointer.
In a statement like int i = *ptr; it tells that you want to assign value pointed to by ptr to variable i.
The symbol “*” is also called as Indirection Operator/ Dereferencing Operator.



Discussion

No Comment Found