Question: Given the declaration: char str1[21]; char str2[21]; a. Write a C++ statement that stores Sunny Day in str1. b. Write a C++ statement that stores

 Given the declaration: char str1[21]; char str2[21]; a. Write a C++

Given the declaration: char str1[21]; char str2[21]; a. Write a C++ statement that stores "Sunny Day" in str1. b. Write a C++ statement that stores the length of str 1 into the int variable length. c. Write a C++ statement that copies the value of name into str2. d. Write C++ code that outputs str1 if str1 is less than or equal to str2, and otherwise outputs str2

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!