Introducing Radical.sh

Forget Code launches a powerful code generator for building API's

Reverse the String Using FOR Loop and Pointers in C++

//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";
}