Passing arguments to a C program
- by Radhika
Hi All,
I was writing a C program where I use 6 variables a,b,c,d,e,f
a,b,c are constant values which I should pass as an argument(command line)
d,e,f are going to be size of arrays(which are a part of a structure)
typedef struct
{
blah blah
} ex;
ex ex0[d];
I am very confused about how to pass all these as argument. Right now I have hard coded these values,which apparently I should not be doing.