Saturday, 12 March 2016

How would you declare each of the following?

Leave a Comment

                     

Question:

1. How would you declare each of the following?

             a. actors is an array of 30 char.
             b. betsie is an array of 100 short.
             c. chuck is an array of 13 float.
             d. dipsea is an array of 64 long double.

Answer:

a. char actors[30];
b. short betsie[100];
c. float chuck[13];
d. long double dipsea[64];

Source:

C++ Primer Plus Sixth Edition Chapter Review

If You Enjoyed This, Take 5 Seconds To Share It

0 Questions: