My Compiler(gcc) is showing the warning
warning: declaration of 'index' shadows a global declaration
Please help me understand why this warning comes.