Program to print String Elements using Pointer
#include<stdio.h> #include<conio.h> main() { char name [ ] = “Degree College”; char * ptr; ptr=name; //stori...
https://www.computersprofessor.com/2016/06/program-to-print-string-elements-using.html
#include<stdio.h>
#include<conio.h>
#include<conio.h>
main()
{
char name [ ] = “Degree College”;
char *ptr;
ptr=name; //storing the base address of 0th element of string
while (*ptr!=’\0’)
{
printf(“%c”, *ptr);
ptr++;
}
getch();
}