#include<iostream.h>
#include<conio.h>
#include <stdlib.h>
int main()
{
int *ptr[5];
int a[] = {1,2,3,4,5}; //declaring and integer array
char b[] = {'a','b','c','d','e'}; //declaring and Character array
*ptr=a; //assign values of integer array to integer pointer array
for(int i=0;i<5;i++) //by looping, Print values of array a, pointing to pointer
{
cout<<"A["<< i+1 <<"] : " << *ptr+i <<endl;
}
int *pntr=(int*)b; //Assign values of character array to poniter array of int type
getch();
}
i want the output like this...
A[1]: 97
A[2]: 98
A[3]: 99
A[4]: 100
A[5]: 101