Is it possible to have an array of C-strings? Is so, give an example of the declaration.

What will be an ideal response?

Yes, you can create an array of C-strings. It is actually a two-dimensional C-string array. For example, to create an array of 10 C-strings, each 50 chars long, you’d declare it like this:
char text[10][50];

Computer Science & Information Technology

You might also like to view...

If entity A in Figure 2 represents customers and entity B represents automobiles, which of the following statements is correct?

A) Each customer can only own one car, but each car can be owned by many customers. B) Each customer can only own one car and each car can only be owned by one customer. C) Each customer can own many cars and each car can be owned by many customers. D) Each customer can own many cars, but each car can be owned by only one customer.

Computer Science & Information Technology

One of the functions of a firewall is to protect against:

A) ISPs B) WANs C) hackers D) scripters

Computer Science & Information Technology