#include #include int main() { using namespace std; const char *p = "Hallo"; const char *q = " Welt"; cout << strncmp(p, q, 3) << '\n'; }