Instead of casting, use the proper data type, i.e.
#include<iostream>
#include<cstring>
using namespace std;
int main()
{
size_t zero = 0;
char s[]="WAITING";
if(zero < strlen(s))
cout<<"having string\n";
else
cout<<"Not Having string\n";
}
You may also use
C++
strings
#include<iostream>
using namespace std;
int main()
{
string s = "WAITING";
if( s.empty() )
cout<<"Not having string\n";
else
cout<<"Having string\n";
}