Why is this giving segmentation faullt



it is giving segmentation fault why?