I have done above code but it is showing segmentation fault

Here is my code:-

hello @priya_Jain
check now->