Arrays are data structures consisting of related data gems of the same ______ a.
ID: 3760025 • Letter: A
Question
Arrays are data structures consisting of related data gems of the same ______ a. sort order b. subscript c. type d. element 2. What is the subscript of the first element of an array? 13. What is the correct syntax for declaring and initializing an array that contains the numbers 1.1,3.1,4.1,5.1,6.1, and 7.1? a. float digits[5]={1.1, 3.1,4.1,5.1,6.1,7.1); b. float digits={1.1, 3.1,4.1,5.1,6.1,7.1); c. int digits[7]={1.1, 3.1,4.1,5.1,6.1,7.1); d. float digits[]={1.1, 3.1,4.1,5.1,6.1,7.1); 14 The function prototype (also called declaration) shown here. float mySqrt ( int X); a. Declares a function called mySqrt which takes an integer as an argument and returns a float. b. Defines a function called float which calculates square roots. c. Defines a function called mySqrt which takes an argument of type x and returns a float d. Declares a function called mySqrt which takes a float as an argument and returns an integer 15. Referencing elements outside the array bounds a. can result in changes to the value of an unrelated memory location b. is impossible because C checks to make sure it does not happen c. is a syntax error d. enlarges the size of the arrayExplanation / Answer
11) (c)-type
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.