You were right. For some reason, the redefinition of the function was not getting affected. And strangely now, both the versions of the function work! I have another question though, I initialise s and c outside of the function, but on executing the function their values remain unaffected. Why is this so?
1 Like