Consider the following declaration: char str[15];. Which of the following statements stores "Blue Sky" into str?

A. str = "Blue Sky";
B. str[15] = "Blue Sky";
C. strcpy(str, "Blue Sky");
D. strcpy("Blue Sky");

Answer: C

Computer Science & Information Technology

You might also like to view...

Network adapters ________

A) enable nodes in a network to access the network and to communicate with each other B) act like a traffic signal on a network C) are always Ethernet NICs D) are necessary only on servers in a client/server network

Computer Science & Information Technology

When navigating a main form, pressing ________ will move the cursor from field to field within a record

A) $$$Home$$$ B) $$$End$$$ C) $$$Tab$$$ D) $$$Ctrl$$$ + $$$Enter$$$

Computer Science & Information Technology