help......i dont understand what i am doing wrong?

This is a discussion on help......i dont understand what i am doing wrong? within the C Programming forums, part of the General Programming Boards category; I am trying to write a programed named reverse.c that echoes its command-line arguments in reverse order. But i don't ...

help......i dont understand what i am doing wrong?

I am trying to write a programed named reverse.c that echoes its command-line arguments in reverse order. But i don't know what is wrong.
If the input is: reverse void and null
The output should be: null and void

Code Tags

I am posting this because you did not use code tags on this thread. In the furture please use Code Tags. They make your code MUCH easier to read and people will be much more likely to help you if you do. And they'll be happy about helping you

For example:

Without code tags:

for(int i=0;i<5;i++)
{
cout << "No code tags are bad";
}

With Code Tags:

Code:

for(int i=0;i<5;i++)
{
cout << "This code is easy to read";
}

This is of course a basic example...more complicated code is even easier to read with code tags than without.

I've added code tags for you this time. They can be added by putting [code] at the beginning of your code and [/code] at the end. More information on code tags may be found at the link in my signature. Any further questions or ways I can help please feel free to PM me.