What are pointers? How do we use pointers to different data types?
Data Structures and Algorithms==> POINTERS--
Declaration :
data_type *variable_name;
Ex : int *a;
Ex :
#include int main()
{
int var = 20;
int *ip;
ip=&var;
printf(“Address of variable is %x ”, &var);
printf(“Address stored in ip variable is :%x”,ip);
printf(“value of *ip variable : %d”, *ip);
return 0;
}