"Pirabhu Raman" <pirabhurufl.edu> writes:
> This pgm dumped core and even when reading the core file the same output was
> obtained. Is there some other configuration that needs to be set for reading
> core file?
No, but different versions of gdb are broken on various platforms
in a multitude of ways, and you appear to have stumbled on one
of them.

Without knowing what platform you are on, which compiler you used,
which version of gdb (and how it was configured), the only advice
is to run the app under gdb from the start -- you'll quite often
have a more reasonable result.

Cheers,
--
In order to understand recursion you must first understand recursion.