problem printing string
hello to all,
I am having problems printing a string in reverse using the reverse function.
here is my code:
I am receiving the following error:
char topSequence = reverse(rowAlign) ;
char bottomSequence = reverse(colAlign) ;
error: invalid initializer
I do not believe the problem is with the rowAlign and colAlign variables. Everything is compiling fine until this point.
Any suggestions on how to fix?
Carnac the Magnificent could not figure this out with what little code you have posted.
These are the lines of code that are being singled out by the compiler. There are no other errors being reported by the compiler.
I don't think you can initialize an array like that.
Try using char *s
array initializers should be constant strings as far as I remember...