I am learning C++ and learnt that the following given declarations are equivalent:
int main (int argc, char *argv[]); //first declaration
int main (int argc, char **argv); //RE-DECLARATION. Equivalent to the above declaration
My question is that if i change the declaration to say:
//note the added const
int main (int argc,const char *argv[]); //IS THIS VALID?
Is the above declaration where i have added a const valid? That is, does the C++ standard allow this modified declaration with the added const.