#include #include #define MAX 30 void push(char ); char stack[MAX]; int tos=0; int main(){ char str[]=\"Arijit Saha\"; char *f
char reverse[strlen(s)]; is on the stack. After the function complete it is now invalid, but you are returning its address.
char reverse[strlen(s)];