ExplanationIn the above example, addresses of one-array elements are assigned to another array.
The second array assigns addresses to the third one and so on. In the successive printf () statements
increases by one for getting higher level value.
9.9 POINTERS AND STRINGS
9.29 Write a program to read string from keyboard and display it using character pointer.
#Include <stdio.h>
#Include <conio.h>
nainO
{
char name [15] ,*ch;
printf ("Enter Your Name
getsiname);
ch=mame;
J* store base address of string name */
while (*ch!-'\0')
I
printf C%c”*ch);
ch++;
I
OUTPUT:
Enter Your Name: ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month, and much more.