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


Please Help Members By Posting Answers For Below Questions

What is a constant and types of constants in c?

595


What is pragma in c?

621


What are different types of variables in c?

563


What does %c do in c?

578


Explain how do you sort filenames in a directory?

595






What is c language & why it is used?

572


how to build a exercise findig min number of e heap with list imlemented?

1600


What is the right type to use for boolean values in c?

576


What is pointer to pointer in c with example?

541


Why does the call char scanf work?

611


Where local variables are stored in c?

550


What is the code in while loop that returns the output of given code?

1287


What standard functions are available to manipulate strings?

553


Which driver is a pure java driver

983


Explain why C language is procedural?

765