Run ❯
Get your
own
website
❯
Run Code
Ctrl+Alt+R
Change Orientation
Ctrl+Alt+O
Change Theme
Ctrl+Alt+D
Change Language
Go to Spaces
Ctrl+Alt+P
#include
#include
using namespace std; int main() { char str1[] = "Apple"; char str2[] = "Banana"; char key1[50], key2[50]; strxfrm(key1, str1, 50); strxfrm(key2, str2, 50); cout << (strcmp(key1, key2) < 0 ? "Apple comes first" : "Banana comes first"); return 0; }
Apple comes first