there is a mistake on the code. I would like to write "test" like
t
e
s
t
but it writes reverse. it is easy but my brain is not enough.
#include <iostream.h>
#include <string.h>
#include <conio.h>
int main(void)
{
char *pointer="test";
int index;
for(index=(strlen(pointer)-1); index >= 0; index--) /* strlen="length of the string. */
cout<<pointer[index]<<endl;
cout<<"\n"<<pointer;
getch();
return 0;
}