void main(int argc,char *argv[],char *env[])
{
int i;
for(i=1;i<argc;i++)
printf("%s",env[i]);
}
Answer Posted / siddique
void main(int argc, char *argv[], char *env[])
{
int i=0;
while(env[i])
{
printf("%s\n", env[i]);
i++;
}
}
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
Can we declare a function inside a function in c?
What is the use of a ‘ ’ character?
Explain what is wrong with this program statement?
What is the difference between printf and scanf in c?
Which header file should you include if you are to develop a function which can accept variable number of arguments?
Is array name a pointer?
Why is c called "mother" language?
what is the difference between north western polytechnique university and your applied colleges?? please give ur answers for this. :)
What is meant by keywords in c?
formula to convert 2500mmh2o into m3/hr
What does == mean in texting?
Write an efficient algo and C code to shuffle a pack of cards.. this one was a feedback process until we came up with one with no extra storage.
What is the difference between arrays and pointers?
Can static variables be declared in a header file?
Can we change the value of static variable in c?