I don't know how that compiles. You have more than one major error with it.

First problem is that quad is a char not a char *, which is what you need for this, so that should change. Next, you have wrong conditions. Judging from the type of program, I would venture to say that you're trying to perform a logical AND on both of those conditions, which is done with the && operator (Don't use one & for this. That means something else in C.).

Lastly, you're printing quad out as a numerical value when it should be printed as a string. The format specifier in printf() should be a %s.

What the program is sposed to do is take the user input array and reverse the values with respect to the spot they take in the array, the catch is im not allowed to use another array and i can use a variable to hold values in the array.
The second loop is where im trying to make a loop which reverses the order. Iv thought about it for quite some time though and cant think of any way to do it. (i could make 10 variables and then reverse it that way but that is in essence using an array to reverse it.)

Can someone explain how a pointer to quad fixed that? I get the string suggestion, but not the pointer suggestion.

When you include a block of letters inside double quotes, that's called a string literal. String literals are usually handled in a special way by your compiler and possibly placed in something like the .data segment of your program.

Remember a string is just a sequence of chars in memory that end with a '\0' char. You can point to this block or memory by pointing to the first element of this block. That's what something like char *ptr = "sometext"; does. "sometext" is stored somewhere in your program, and ptr just points to the first char in the sequence.

The only downside to using a pointer in that manner is that the strings are read-only. Do not alter them. If you wish to alter them, use an array where the strings are copied to that array.

What the program is sposed to do is take the user input array and reverse the values with respect to the spot they take in the array, the catch is im not allowed to use another array and i can use a variable to hold values in the array.
The second loop is where im trying to make a loop which reverses the order. Iv thought about it for quite some time though and cant think of any way to do it. (i could make 10 variables and then reverse it that way but that is in essence using an array to reverse it.)