We wish define a string variable (really, it\'s an object, but think of it as be
ID: 3528190 • Letter: W
Question
We wish define a string variable (really, it's an object, but think of it as being like a variable) named last_name. (a) Write the preprocessor directive to include the requisite header file. (b) Write the statement to define last_name. (c) Write an assignment statement that assigns "Flintstone" to last_name. (d) A sequence of zero or more characters enclosed in double quotation marks, such as "Flintstone", is called a(n) (2 words). (e) Explain the difference (or is there) between "" and "?". (f) What is "" called? Note: ? represents the space character.
Here is a pic to the question more clear.
Explanation / Answer
a. #include b. string last_name; c. last_name="Flintstone"; d. character string e. one is an empty string versus a string with a space character in it f. //not sure exactly what it is asking double quotation , string literal, empty stringRelated Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.