Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

When should we use pointers in a c program?

1119


Explain high-order and low-order bytes.

1087


What is a pointer on a pointer in c programming language?

1132


In which header file is the null macro defined?

1335


What is meant by operator precedence?

1130


What do you mean by invalid pointer arithmetic?

1055


Can we declare function inside main?

988


Explain 'far' and 'near' pointers in c.

1128


How are portions of a program disabled in demo versions?

1280


what are bit fields in c?

1673


The file stdio.h, what does it contain?

1146


When can a far pointer be used?

1011


Explain main function in c?

1075


Explain the use of 'auto' keyword

1113


What is main () in c?

1058