Getting Segmentation Fault, even though there is no array out of bouds being accessed I am getting Segmentation fault in the below code. Can anyone help.