C How to Program (8th Edition)
C How to Program (8th Edition)
8th Edition
ISBN: 9780133976892
Author: Paul J. Deitel, Harvey Deitel
Publisher: PEARSON
bartleby

Videos

Textbook Question
Book Icon
Chapter 6, Problem 6.6E

Fill in the blanks in each of the following:

  1. C stores lists of values in _______.
  2. The elements of an array are related by the fact that they _____.
  3. When referring to an array element, the position number contained within square brackets is called a(n) __________.
  4. The names of the five elements of array p are ___, ____, ___, _____ and ____.
  5. The contents of a particular element of an array is called the _____ of that element.
  6. Naming an array, stating its type and specifying the number of elements in the array is called _____ the array.
  7. The process of placing the elements of an array into either ascending or descending order is called ____.
  8. In a two-dimensional array, the first index identifies the _____ of an element and the second index identifies the _____ of an element.
  9. An m-by-n array contains _____ rows, _____ columns and _____ elements.
  10. The name of the element in row 3 and column 5 of array d is ___.

a)

Expert Solution
Check Mark
Program Plan Intro

To fill in the blanks with appropriate word.

Program Description Answer

C stores the list of values in _Arrays.

Explanation of Solution

Arrays in C stores the homogenous data type of values in consecutive memory locations.Thus, the correct fill up is arrays.

b)

Expert Solution
Check Mark
Program Plan Intro

To fill in the blanks with appropriate word.

Program Description Answer

The elements of the array are related by the fact that they areHomogeneous.

Explanation of Solution

Arrays in C stores the homogenous data type (of the same type) of values in consecutive memory locations e.g. they can contain the same kind of elements like integers, characters, doubles and floats. etc.

Thus, the correct fill up is homogeneous.

c)

Expert Solution
Check Mark
Program Plan Intro

To fill in the blanks.

Program Description Answer

When referring to an array element, the position number contained within square brackets is called aSubscript.

Explanation of Solution

The elements in an array are accessed using the index value contained within the square bracket known as a subscript. It is used to identify the index of the element.

Thus, the correct fill up is subscript.

d)

Expert Solution
Check Mark
Program Plan Intro

To fill in the blanks.

Program Description Answer

The names of five elements of array p are p[0], p[1],p[2],p[3] and p[4].

Explanation of Solution

The elements of the array are accessed using the subscript which start from 0 to length-1.Thus, the correct fill up is p[0],p[1],p[2], p[3] and p[4]..

e)

Expert Solution
Check Mark
Program Plan Intro

To fill in the blanks.

Program Description Answer

The contents of the particular element of the array are called as thevalueof the element in the array.

Explanation of Solution

The content of the element of an array is called the value. For example a is an array and the element at its first positive contains the content 2. So the value will be 2.Thus, the correct fill up is value.

f)

Expert Solution
Check Mark
Program Plan Intro

To fill in the blanks.

Program Description Answer

Naming an array, stating its type and specifying the number of elements in the array is called thedeclarationof the array.

Explanation of Solution

Declaration syntax of an array is as follows-

type arrayname[size];

For example,intarr[5]; //declaration of integer array of size 5.

Thus, the correct fill up is Declaration.

g)

Expert Solution
Check Mark
Program Plan Intro

To fill in the blanks.

Program Description Answer

The process of placing the elements of an array either in ascending order or descending order is calledSorting.

Explanation of Solution

Sorting is the process of arranging the element either in increasing or decreasing order. Thus, the correct fill up is sorting.

h)

Expert Solution
Check Mark
Program Plan Intro

To fill in the blanks.

Program Description Answer

In a two-dimensional array, the first index identifies therow of an element and the second element identifies thecolumnof an element.

Explanation of Solution

The elements in two-dimensional array are stored in rows and column.

Following is the assignment in a 2D array.

a[0][1]=5;

Here 0 is the row number and 1 is the column number and at this position value 5 is stored.Thus, the correct fill up is rowandcolumn.

i)

Expert Solution
Check Mark
Program Plan Intro

To fill in the blanks.

Program Description Answer

An m by n array contains_m_ rows, _n_ columns and _m*n__ elements.

Explanation of Solution

The number of elements in 2 d array is always the product of the number of rows and columns.Thus, the correct fill up arem, n and m*n.

j)

Expert Solution
Check Mark
Program Plan Intro

To fill in the blanks.

Program Description Answer

The name of an element in row 3 and column 5 of array d isd[2][4].

Explanation of Solution

The array indices always start from 0, so the element in 3rd row and 5th column of 2 d array d will be denoted by d[2][4].

Thus, the correct fill up is d[2][4].

Want to see more full solutions like this?

Subscribe now to access step-by-step solutions to millions of textbook problems written by subject matter experts!
09:44
Students have asked these similar questions
(1 point) By dragging statements from the left column to the right column below, give a proof by induction of the following statement: an = = 9" - 1 is a solution to the recurrence relation an = 9an-18 with ao = : 0. The correct proof will use 8 of the statements below. Statements to choose from: Note that a₁ = 9a0 + 8. Now assume that P(n) is true for all n ≥ 0. Your Proof: Put chosen statements in order in this column and press the Submit Answers button. Let P(n) be the predicate, "a = 9″ – 1". απ = 90 − 1 = Note that Let P(n) be the predicate, "an 9" - 1 is a solution to the recurrence relation an = 9an-1 +8 with ao = 0." - Now assume that P(k + 1) is true. Thus P(k) is true for all k. Thus P(k+1) is true. Then ak+1 = 9ak +8, so P(k + 1) is true. = 1 − 1 = 0, as required. Then = 9k — 1. ak Now assume that P(k) is true for an arbitrary integer k ≥ 1. By the recurrence relation, we have ak+1 = ak+1 = = 9ak + 8 = 9(9k − 1) + 8 This simplifies to 9k+19+8 = 9k+1 − 1 Then 9k+1 − 1 = 9(9*…
Given the following request to an AI chatbot, which response is more accurate? (You should use Google to verify that the factual claims in each response are accurate.)   Prompt Is this true? The first recorded use of the phrase "when pigs fly" in print is in a 1616 play by Ben Jonson called "The Devil is an Ass," in which a character says, "When pigs fly, good-night!!" Response   Response A Response B Yes, that's true! The phrase "when pigs fly" indeed appears in Ben Jonson's 1616 play The Devil is an Ass and was said during the second act in a conversation between Fitzdottrel and Pug. The phrase was first used to express skepticism or disbelief, suggesting that something is as unlikely to happen as the fanciful idea of pigs flying. This usage is often cited as one of the earliest instances of the phrase in print.   The claim that the phrase "when pigs fly" was first recorded in Ben Jonson's 1616 play "The Devil is an Ass" is not accurate. There is no evidence from the…
This is for my Computer Organization & Assembly Language Class

Chapter 6 Solutions

C How to Program (8th Edition)

Knowledge Booster
Background pattern image
Computer Science
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
SEE MORE QUESTIONS
Recommended textbooks for you
Text book image
C++ for Engineers and Scientists
Computer Science
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Course Technology Ptr
Text book image
C++ Programming: From Problem Analysis to Program...
Computer Science
ISBN:9781337102087
Author:D. S. Malik
Publisher:Cengage Learning
Text book image
Microsoft Visual C#
Computer Science
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Cengage Learning,
Text book image
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:9781337102124
Author:Diane Zak
Publisher:Cengage Learning
Text book image
Programming Logic & Design Comprehensive
Computer Science
ISBN:9781337669405
Author:FARRELL
Publisher:Cengage
Text book image
EBK JAVA PROGRAMMING
Computer Science
ISBN:9781337671385
Author:FARRELL
Publisher:CENGAGE LEARNING - CONSIGNMENT
1.1 Arrays in Data Structure | Declaration, Initialization, Memory representation; Author: Jenny's lectures CS/IT NET&JRF;https://www.youtube.com/watch?v=AT14lCXuMKI;License: Standard YouTube License, CC-BY
Definition of Array; Author: Neso Academy;https://www.youtube.com/watch?v=55l-aZ7_F24;License: Standard Youtube License