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
if (i = 0)printf ("True"); elseprintf("False"); Under what conditions will the above print out the string "True" a) Never b) Always c) When the value of i is 0 d) all of the above
What is the value of uninitialized variable in c?
Write a program which returns the first non repetitive character in the string?
Explain how can a program be made to print the line number where an error occurs?
can any one tel me wt is the question pattern for NIC exam
When should the const modifier be used?
What is operator promotion?
What is c method?
Explain what are binary trees?
How can you restore a redirected standard stream?
What is page thrashing?
Explain how can I right-justify a string?
What are the 4 types of organizational structures?
What is switch in c?
This is a variation of the call_me function in the previous question:call_me (myvar)int *myvar;{ *myvar += 5; }The correct way to call this function from main() will be a) call_me(myvar) b) call_me(*myvar) c) call_me(&myvar) d) expanded memory