Need a project done?

C++ Programming Developer

Search This Blog

How to tell Number of Characters in String in C++?

//How to tell Number of Characters in String?

#include <iostream.h>
#include <cstring>

void main()
{
char a[] = "Bye";
cout << "Number of Characters in array a[]: "<< strlen(a) << endl;
}



"Don't let anyone ever make you feel like you don't deserve what you want."