F.ex:
#include <string.h>
#include <iostream>
int main()
{
const char *s1 = "Hello";
char s2[] = "Hallo";
if(!strcmp(s1, "Hello"))
std::cout << "s1 er hello" << std::endl;
else
std::cout << "s1 er ikke hello" << std::endl;
if(!strcmp(s2, "Hello"))
std::cout << "s2 er hello" << std::endl;
else
std::cout << "s2 er ikke hello" << std::endl;
}