KEMBAR78
C programming pointer | PPSX
C- PROGRAMMING 
POINTER
EXTRA
EXTRA
EXTRA
#include<stdio.h> 
#include<conio.h> 
void main() 
{ 
int a=5,*p; 
p=&a; 
clrscr(); 
printf(“Value of a = %dn” ,a); 
printf(“Address of a = %un” ,p); 
printf(“Value of *p = %dn” ,*p); 
printf(“Address of p = %un” ,&p); 
getch(); 
} 
EXTRA
EXTRA
#include<stdio.h> 
#include<conio.h> 
void greater(int*, int*); 
void main() 
{ 
int a,b; 
clrscr(); 
printf(“Enter the value of a & bn”); 
scanf(“%d%d”,&a,&b); 
greater(&a,&b); 
getch(); 
} 
void greater(int *a, int *b) 
{ 
if(*a>*b) 
{ 
printf(“a is greater then b”); 
} 
else 
{ 
printf(“b is greater then a”); 
} 
} 
EXTRA

C programming pointer