We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hi,
I need to provide inputs from command-line to my code.
I am using DS-5 Ultimate Evaluation Edition.
int main(int argc, char *argv[])
{
printf("%d", argc);
printf("Arguments are: \n");
for(i=0; i<argc; i++)
printf("%s\n", argv[i]);
}
I am giving input arguments in the following path
Debug Configurations -> Arguments -> Program Arguments -> Hello 10 world
Here i am giving 3 input arguments...
Argv[0] = Hello
Argv[1] = 10
Argv[2] = world
But argc & argv variables are not populating with these values.
Can anyone correct me , if i am missing something.
Thanks in Advance,
Divya.