Advertisement
STANAANDREY

strcmp

Oct 22nd, 2019
256
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.24 KB | None | 0 0
  1. #include <iostream>
  2. #include <cstring>
  3. #include <stdio.h>
  4. using namespace std;
  5.  
  6. int main()
  7. {
  8.     cout << strcmp("asdfg", "asdfg") << endl;
  9.     cout << strcmp("a", "b") << endl;//-1
  10.     cout << strcmp("c", "b") << endl;//1
  11.     return 0;
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement