Wat does the following code print char s1 abcde char s2


1. What does the following code print:

char* s1 = "ABCDE"; char* s2 = "ABCE";
if (strcmp(s1,s2) endl; else cout << s1 << " >= " endl;

2. What does the following code print:

char* s1 = "ABCDE"; char* s2 = "";
if (strcmp(s1,s2) endl; else cout << s1 << " >= " endl;

Solution Preview :

Prepared by a verified Expert
C/C++ Programming: Wat does the following code print char s1 abcde char s2
Reference No:- TGS01186324

Now Priced at $10 (50% Discount)

Recommended (92%)

Rated (4.4/5)