Which one of the following statements assigns the string "Pickles" to the name member of cats[2]?
36. Look at the following code sample that creates an array of Pet structure objects:
```
struct Pet
{
public string name;
public int age;
public string type;
}
const int SIZE = 4;
Pet[] cats = new Pet[SIZE];
```
a. "Pickles" = cats[2];
b. cats[2].name = "Pickles";
c. cats.name[2] = "Pickles";
d. cats[2].name("Pickles");
c. cats.name[2] = "Pickles";
Computer Science & Information Technology
You might also like to view...
A(n) ________ occurs when an action is completed on any given object. The action could be, for example, a simple click of the mouse or entering information into a specific field
Fill in the blank(s) with correct word
Computer Science & Information Technology
What type of controls display prompts such as drop-down lists, date pickers, text boxes, and check boxes?
A) Text B) Data C) Field D) Content
Computer Science & Information Technology