Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

********Note: Please know that if you can\'t answer all the question, that\'s ju

ID: 3554757 • Letter: #

Question

********Note: Please know that if you can't answer all the question, that's just fine, answer as much as you can, and I'll give you the full points. Thank you in advance.**********

**********Note about the book :

You can follow this link, these questions follow this book (chapter 6)

http://smbidoki.ir/courses/66_Concepts%20of%20Programming%20Languages%2010th-Sebesta.PDF

==========================

1.

Character strings in C and C++ are implemented as arrays of char. These arrays can be initialized to string constants, as in

char name [] = "freddie";

The array name will have eight elements, because all strings are terminated with a null character (zero), which is implicitly supplied by the system for string constants.

Arrays of strings in C and C++ can also be initialized with string literals. In this case, the array is one of pointers to characters. For example,

char *names [] = {"Bob", "Jake", "Darcie"};

This example illustrates the nature of character literals in C and C++. In the previous example of a string literal being used to initialize the char array name, the literal is taken to be a char array. But in the latter example (names), the literals are taken to be pointers to characters, so the array is an array of pointers to characters. For example, names[0] is a pointer to the letter 'B'in the literal character array that contains the characters 'B', 'o', 'b', and the null character.

In Java, similar syntax is used to define and initialize an array of references to String objects. For example,

String[] names = ["Bob", "Jake", "Darcie"];

From above it shows one way to create an array of strings in C or C++:

Char *name[] = {

Explanation / Answer

1.

Method 1

Char *name[] = {