Describe the difference in the meaning of the 5 in int x[5]; and the meaning of the 4 in x[4]. What are the meanings of the int, the [5] and the [4]?

What will be an ideal response?


The statement, int x[5];, is a declaration, where 5 is the declared size,
that is, the number of array elements. The int is the base type of the array. The expression x[4] is an access to the array indexed variable defined by the previous
statement. The access is to the element having index 4, which is the 5th (and last)
array element.

Computer Science & Information Technology

You might also like to view...

A void function can have

a) no arguments b) as many arguments as the programmer wishes c) no more than 3 arguments d) exactly one argument

Computer Science & Information Technology

Fill in the blanks for the HTML code below to create a link to your favorite Web site. Use a valid URL.

<_________ = "http://www.google.edu/">My Favorite Web site

Computer Science & Information Technology

The questionnaire will vary from student to student. The questionnaire should include open-ended questions that ask about feelings and concerns of the Training Department as well as closed questions. Some sample questions are:

What will be an ideal response?

Computer Science & Information Technology

The word ____ stands for binary digit.

a. bin b. bit c. pixel d. bid

Computer Science & Information Technology