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
When should we use pointers in a c program?
Explain high-order and low-order bytes.
What is a pointer on a pointer in c programming language?
In which header file is the null macro defined?
What is meant by operator precedence?
What do you mean by invalid pointer arithmetic?
Can we declare function inside main?
Explain 'far' and 'near' pointers in c.
How are portions of a program disabled in demo versions?
what are bit fields in c?
The file stdio.h, what does it contain?
When can a far pointer be used?
Explain main function in c?
Explain the use of 'auto' keyword
What is main () in c?