Which of the following defines the C-string containing “Hello”?
A. ```
char stringVar[10] = “Hello”;
```
B. ```
char stringVar[10] = {‘H’, ‘e’, ‘l’, ‘l’, ‘o’};
```
C. ```
char stringVar[10] = {‘H’, ‘e’, ‘l’, ‘l’, ‘o’, ‘\0’};
```
D. ```
char stringVar[6] = “Hello”;
```
E. ```
char stringVar[] = “Hello”;
```
a) c) d) e)
Note that a) and c) have the same size C-string variable and have the
same size C-string. d) and e) have the same size C-string variable and have the same
size C-string, but the size of the C-string variable is different from a) and c). The
character array in b) is not terminated, so the array does not contain a C-string at all.
You might also like to view...
This attack exploits vulnerabilities in DNS and directs internet traffic away from the intended server to a fake server.
What will be an ideal response?
Bullet points are organized in ________ levels similar to an outline
A) item B) detail C) list D) priority
It is important to present a well-designed chart because the chart can become a reflection on you and your company
Indicate whether the statement is true or false
You cannot add layer styles that are usually applied to type layers, such as Drop Shadow, to image layers.
Answer the following statement true (T) or false (F)