Write a program to find the length of a string manually.
#include <iostream>
using namespace std;
int main()
{
char str[] = "hello";
char *it = str;
for (; *it; ++it);
int length = it - str;
cout << "The length of the string is " << length << endl;
return 0;
}