WAP to illustrate the use of POINTERS (character pointer & integer pointer)


#include<conio.h>
#include<conio.h>
void main()
{
	char ch='x';
	char *c;
	int a=20;
	int *ptr;
	ptr=&a;
	c=&ch;
	clrscr();
	printf("%d",ch);
	printf("%d",ptr);
	getch();
}

No comments:

Post a Comment