Which of the following gives the number of elements in the array int r[ 10 ]?

a. sizeof r
b. sizeof ( *r )
c. sizeof r / sizeof ( int )
d. sizeof ( *r ) / sizeof ( int )


c. sizeof r / sizeof ( int )

Computer Science & Information Technology

You might also like to view...

Discuss the primary role of the SCO.

What will be an ideal response?

Computer Science & Information Technology

Write a function to increase the volume on the passed sound just between the passed start and end index.

The function does not specify by what amount to increase the volume, therefore anything from multiplying the value by a number greater than one to normalizing the segment would be appropriate.

Computer Science & Information Technology

Tagged Image File Format is not used on Web pages

Indicate whether the statement is true or false

Computer Science & Information Technology

Which of the following struct definitions is correct in C++?

A. struct studentType {  int ID; }; B. struct studentType {   string name;   int ID;   double gpa;}   C. int struct studentType {   ID; }   D. struct studentType {   int ID = 1; };  

Computer Science & Information Technology