//========================
//Program in Cto learn strings pointers in C, stringptr.c
//========================
#include<stdio.h>
int main()
{
char name[]="Karnighan";
int *ptr;
ptr=name;
int i=0;
while(*ptr != '\0')
{
printf("%c",*ptr);
ptr++;
}
return 0;
}
No comments:
Post a Comment