Write a c statement that stores sunny day in str1 - write


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 str1 into the int variable length.

c. Write a C++ statement that copies your name into str2.

d. Write C++ code that outputs str1 if str1 is less than or equal to str2, and otherwise outputs str2.

Hint: You should to use the utility functions that comes in the library; unless you want to write your own C-string functions or code J include comments to clearly show which part of code is answering which part above.

Request for Solution File

Ask an Expert for Answer!!
C/C++ Programming: Write a c statement that stores sunny day in str1 - write
Reference No:- TGS01528853

Expected delivery within 24 Hours