Fixed for you.
#include <stdio.h>
int main()
{
char *name;
name = "DELHI";
int length;
char *cptr = name;
printf ("%s\n", name);
while(*cptr != '\0')
{
printf("%C is stored at address %p\n", *cptr, cptr);
cptr++;
}
length = cptr - name;
printf("\nLength of the string = %d\n", length);
return 0;
}
By the way, you really like curly braces, don't you?