C Program to find length of string using Pointer