write a short note on pointer operators in


Write a short note on pointer operators in c

Pointers (that is, pointer values) are generated with the ''address-of'' operator &, which we can also think of as the ''pointer-to'' operator. We demonstrate this by declaring (and initializing) an int variable i, and then setting ip to point to it:

 int i = 5;

ip = &i;

The assignment expression ip = &i; contains both parts of the ''two-step process'':&i generates a pointer to i, and the assignment operator assigns the new pointer to (that is, places it ''in'') the variable ip.

 

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: write a short note on pointer operators in
Reference No:- TGS0305445

Expected delivery within 24 Hours