Our aim is to connect students from campuses all over Delhi by making them aware of all Technical, Cultural, Management fests, workshops, Seminars organized by every college in Delhi.

Join Us Now

Program 32: Write a C++ program to check whether the strings are equal or not without using stdlib funcs.

using namespace std;

int main()
	string str1,str2;
	int flag=0;
	cout<<"\nenter two string : ";
	int size1=str1.length(),size2=str2.length();

		cout<<"\nneither length nor strings are equal!!";

		cout<<"\nBoth strings are equal...";
		cout<<"\nlength of both strings are equal but strings not!!!";
	return 0;

If you have any suggestion or found any error in the above program, then do let us know at [email protected] or just comment below.