Menu

[Solved]-Question 35 Code Snippet Output Yes Two Strings S1 S2 Equal Oif S1 S2 Cout Yes Endl 0 S1 S Q37295818

QUESTION 35 Which code snippet will output Yes! when two strings s1 and s2 are equal? Oif (s1 s2) cout << Yes! << endl; )QUESTION 35 Which code snippet will output “Yes!” when two strings s1 and s2 are equal? Oif (s1 s2) cout << “Yes!” << endl; ) 0 if (s1 == s2) { cout << “Yes!” << endl; } if (s1 < s2) cout << “Yes!”<endl; ) if (s1 != s2) { cout << “Yes!” << endl; } QUESTION 36 What is the output of the following code snippet? #include <iostream> using namespace std; int main() cout <s “cout <s endl prints out a new line to << endl << “the standard output stream K endli return O The code snippet gives a compilation error because the cout statement is inside the quotation marks cout prints out a new line to the standard output stream cout << endl prints out a new line to the standard output stream prints out a new line to the standard output stream Show transcribed image text QUESTION 35 Which code snippet will output “Yes!” when two strings s1 and s2 are equal? Oif (s1 s2) cout

Expert Answer


Answer to QUESTION 35 Which code snippet will output “Yes!” when two strings s1 and s2 are equal? Oif (s1 s2) cout … . . .

OR


Leave a Reply

Your email address will not be published. Required fields are marked *