for example I think of a situation like this:
string param1 (argv[i+1]);
and I know that it is possible that this may look out of array length, is there a way to declare in a program that whenever I put statement like this a default value will be assigned, something like obviously incorrect string param1 (argv[i+1] or “default”);
What about: