The statement int grades 100 90 99 80 is an example of defa

The statement int grades[] = {100, 90, 99, 80}; is an example of default arguments. an illegal array declaration. an illegal array initialization. implicit array sizing. data encapsulation. The statement typedef int oneDarray[20]; does which of the following? creates an array of 20 integers makes oneDArray a copy of another 20-integer array makes oneDArray an alias for a data type that holds 20 integers creates a one-dimensional integer array with all elements initialized to 20 None of these

Solution

question 9. int grades [ ] = { 100, 90, 99, 80 };

here the size of the array can be inferred as 4 easily during complie time so mentioning array size explicitly may not be essential. hence 4 is the right option(i.e implicit array sizing).

question 10. typdef int oneDAarray[20];

it allows you to define new name or variable to represent the data type. it doesnt create a new data type. instead of using \"int\" you can use \"oneDAarray\". so the answer is \"makes oneDAarray an allias for a data type that holds 20 integers.

 The statement int grades[] = {100, 90, 99, 80}; is an example of default arguments. an illegal array declaration. an illegal array initialization. implicit arr

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site