Question

Which of the following is critical to remember when setting up your array? a. columns used...

Which of the following is critical to remember when setting up your array?

a.

columns used for running totals need to be initialized at the value of zero

b.

use integer datatypes to store numbers

c.

columns that are dimensions should be initialized to the value of NULL.

d.

its best to limit the number of columns per array to 1/3 of the number of rows

Homework Answers

Answer #1

SOLUTION:

columns that are dimensions should be initialized to the value of NULL.

Reason:

There are possibilities to leave the size of a 1-D Array size as blank

But that is not possible in 2-D array. We should make array column size as NULL:

/* the Valid declaration*/
int array[2][2] = {1, 2, 3 }  
/* this is also Valid declaration*/ 
int array[][2] = {1, 2, 3 }  
/* this is not Invalid declaration – you must specify second dimension*/
int array[][] = {1, 2, 3 }   
/* Invalid because of the same reason  mentioned above*/
int array[2][] = {1, 2, 3 ,4, 5}
Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
Write the following program in MIPS: a) declare an array A of the following numbers: 3,...
Write the following program in MIPS: a) declare an array A of the following numbers: 3, 5, 8, 10, 12, 2, 76, 43, 90, 44 b) declare a variable called size which stores the number of element in array A, that is 10. c) write a subroutine to search for a number stored in an array and return true or false. In C++ the subroutine is as follows: search(array, size, number_To_Search) e.g. search(A, 10, 12) The subroutine should return 0...
Note: Do not use classes or any variables of type string to complete this assignment Write...
Note: Do not use classes or any variables of type string to complete this assignment Write a program that reads in a sequence of characters entered by the user and terminated by a period ('.'). Your program should allow the user to enter multiple lines of input by pressing the enter key at the end of each line. The program should print out a frequency table, sorted in decreasing order by number of occurences, listing each letter that ocurred along...
Procedure I. Reverse Transcription. For each of your RNA samples set up the following reaction: *Remember...
Procedure I. Reverse Transcription. For each of your RNA samples set up the following reaction: *Remember to use proper RNA handling technique! 1. In a 0.2 ml size RNAse-Free tube add the following: • 0.5 µg RNA (no more than 6 µl) You can add as little as 0.1 µg of RNA if your concentration is low • 2 µl dT primer • Nuclease Free Water to final volume of 8 µl * Before you start write the exact volume...
Instructions: In 1974, Loftus and Palmer conducted a classic study demonstrating how the language used to...
Instructions: In 1974, Loftus and Palmer conducted a classic study demonstrating how the language used to ask a question can influence eyewitness memory. In the study, college students watched a film of an automobile accident and then were asked questions about what they saw. One group was asked, “About how fast were the cars going when they smashed into each other?” Another group was asked the same question except the verb was changed to “hit” instead of “smashed into.” The...
A comprehensive employee appraisal is often made up of several different methods of performance evaluation. You...
A comprehensive employee appraisal is often made up of several different methods of performance evaluation. You can choose to use just one evaluation process when judging an employee's performance, but when you use multiple evaluation methods you are able to get a broader picture of the areas where the employee needs improvement and what recommendations you should make to support employee development. Self-Evaluation The self-evaluation is often effective when teamed up with a performance review. The employee is asked to...
1. When presenting data graphically, you can choose from many types of graphics. Different graphic types,...
1. When presenting data graphically, you can choose from many types of graphics. Different graphic types, such as tables and charts, can be used to effectively highlight and depict different types of data in your report or presentation. As a professional communicator, you need to know which type of graphic is appropriate for different data. What type of graphic best illustrates changes in quantities over time? -Table -Line graph -Flow chart Read the scenario, and then answer the question. Sandeep...
C++ Goals  Build single linked lists using pointers  Learn how to manipulate linked lists...
C++ Goals  Build single linked lists using pointers  Learn how to manipulate linked lists In this lab, you will create simple single linked structures consisting of Node objects. Each node will have a pointer to the next node. You will use a head pointer to keep track of the first node in the linked list, and a tail pointer to keep track of the last node in the linked list. Set both head and tail to NULL when...
This laboratory assignment involves implementing a data structure called a map. A map associates objects called...
This laboratory assignment involves implementing a data structure called a map. A map associates objects called keys with other objects called values. It is implemented as a Java class that uses arrays internally. 1. Theory. A map is a set of key-value pairs. Each key is said to be associated with its corresponding value, so there is at most one pair in the set with a given key. You can perform the following operations on maps. You can test if...
Instructions: In 1974, Loftus and Palmer conducted a classic study demonstrating how the language used to...
Instructions: In 1974, Loftus and Palmer conducted a classic study demonstrating how the language used to ask a question can influence eyewitness memory. In the study, college students watched a film of an automobile accident and then were asked questions about what they saw. One group was asked, “About how fast were the cars going when they smashed into each other?” Another group was asked the same question except the verb was changed to “hit” instead of “smashed into.” The...
Question 1 of 15 Which of the following is not a recommended starting point to enter...
Question 1 of 15 Which of the following is not a recommended starting point to enter sales of products/services? A. Quick Create > Invoice B. Register > New transaction C. Quick Create > Sales Receipt D. Customer detail page > New transaction E. Transactions > Sales > New transaction Question 2 of 15 Which of the following statements accurately describes bank rules? A. Bank rules are imported from the Bank's website into the For Review tab in the Banking Center...