Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

(2 points) True or False: int array[]; is a valid array declaration. (2 points)

ID: 3655710 • Letter: #

Question

(2 points)True or False: int array[]; is a valid array declaration.

(2 points)What values are contained in ar if it's defined: int ar[10] = { 2, 4, 6, 8, 10 };

(2 points)Write a function called printAr that will display the values in an array of integers. The function takes two arguments: an array of integers and an integer that represents the number of values to display. The function returns nothing.

(2 points)Complete the following sentence: the unsubscripted name of an array is _____.

(2 points)Suppose that an integer array has been declared to hold 40 elements. At the time that it was declared, the first 25 elements were also initialized. What value will the remaining elements of the array be initialized to?

(2 points)The strlen() function returns

(2 points)Which of the following is true of the arguments to strcat(s1, s2);? More than one answer may be correct so make sure to select all of the answers thatapply.

(2 points)The strcmp function returns ____. More than one answer may be correct so make sure toselectall of the answers that apply.

(2 points)Which of the following is a statement that will copy the string str1 into string str2?

(2 points)True or False: strcat(string1, string2); places a null terminated copy of string2 into string1.

(2 points)If a character string will need room to hold a maximum of 80 characters, how should it be defined so that it will be treated as a VALID string?

Explanation / Answer

1): true 2): array index always start from zero location 9): strcpy( str1, str2 ); 10):true 11): char ar[79];