Choose Category
//Reverse the String using FOR Loop and Pointers #include <string.h> #include <iostream> using namespace std; int main() {char *str="ForgetCode"; cout<<"Reverse the String:"; for(int i=(strlen(str)-1);i>=0;i--) { cout<<str[i]; } cout << "Hello, world!\n"; }