Please help it showing segmentation fault

hi @kailash_01
your mistakes
you forgot the case when
if(s==e)return node
leaf node no need to call left right

for(int j=s;j<e;j++){
there should be an equal to j<=e

if(inR[j]==pre[i])
index=j;
break;
braces are required for more than one statement

and mistakes in print function i also modified it
see in the code

Modified Code