IDE : Dev C++
I'd like to add command line argument in my project but couldn't make it..
so, I decided to create and check the basic program..
The problem is, its not taking arguments.
Code:# include <stdio.h> int main (int argc, char* argv[]) { int i; printf("number of arguments: %d\n",argc); printf("name of program %d\n",argv[0]); for (i=1; i<argc; i++) printf("user val = %d : %s\n",i,argv[i]); system("pause"); return 0; } can you tell me what went wrong?