Skip to main content

Posts

Showing posts with the label Passing pointer to a function

Pointer Operations in C programming

1)       Address of any variable can be assigned to a pointer variable. E.g.         p=&a;   q=&b ;               where p & q are pointer variables and a & b are simple variables. 2)       Content of one Pointer can be assigned to other pointer provided they point to same data type. E.g.            int *p, *q;             p=q; 3)       Integer data can added to or subtracted from pointer variables.         E.g. int *p;                 p+1; 4)       One pointer can be subtracted from other pointer provided they point to elements of s...