Program to to calculate distance b/w two heights passing structure as pointers to the function