no compilation error was observed but program returned a garbage value using gdb was able to find the error by stepping into the function
No download links available.