What is significance of star in data pointer

What is significance of “ * ” ?

E

Expert

Verified

This symbol “*” tells the computer which you are declaring a pointer.

Really this depends upon context.
In a statement as int *ptr; the ‘*’ tells which you are declaring a pointer.
In a statement as int i = *ptr; this tells that you wish for to assign value pointed to through ptr to variable i.   
This symbol “*” is also termed as as Indirection Operator/ Dereferencing Operator.

   Related Questions in Database Management System

©TutorsGlobe All rights reserved 2022-2023.