What Is “&” And “*” Operators In C?
C language
Collapse
X
-
Tags: None
-
Address of Operator (&)
The & is a unary operator in C which returns the memory address of the p***ed operand. This is also known as address of operator.
Value of Operator (*)
The * is a unary operator which returns the value of object pointer by a pointer variable. It is known as value of operator. It is also used for declaring pointer variable. -
“*” Operator is used as pointer to a variable. Example: * a where * is pointer to the variable a.
& operator is used to get the address of the variable. Example: &a will give address of a.Comment
Comment