/*WAP to Using pointer to access array elements */
#include<stdio.h>
#include<conio.h>
main( )
{
char name[ ] = "Goldfish" ;
char *ptr ;
ptr = name ; /* store base address of string */
while ( *ptr != `\0' )
{
printf ( "%c", *ptr ) ;
ptr++ ;
}
}