we write sometime int main(int argc,char** argv)
what is the explanation for this.why we are using this?
without this my code is working fine.
Regarding inpt to main ()
Hey Sohan, ```
int main(); is a simple declaration. It cannot take any command line arguments.
int main(int argc, char* argv[]);
This declaration is used when your program must take command-line arguments(argument counts,vectors,environments etc).
We don’t use command-line arguments so simple int main() is good.
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.