Pointer A pointer is a drivided class.It is built from one of the fundamental data type available in c.Pointer contain memory addresses as their values.since these memory addresses are the locations in the computer memory where program instructions and data are stored.Pointer can be used to access and manuplates data store in the memory. Pointer decleartion :- A=[10] Where a is variable name. 10 is the value of variable. Adderss of variable(suppose) 65524. *p – pointer symbol Pointer program :- #include<stdio.h> #include<conio.h> Void main() { Int a ; Int *p ; Printf(“enter a no”); Scanf(“%d”,&a); P=&a; Printf(“\n value of variable %d=”,a); Printf(“\n value of variable %d=”,*p); Printf(“\n addres of variable %u=”,&a); ...
Comments
Post a Comment