1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
fgiga [73]
3 years ago
12

Int [] val = { 3, 10, 44 };

Computers and Technology
1 answer:
irina1246 [14]3 years ago
4 0

Answer:

5) 3 0 0

Explanation:

Given data

int [] val = { 3, 10, 44 };

The total number of parameters of given array are 3, so total length of array is also 3.

The indexing of array starts with '0', Therefore the indexes of array with length zero are: {0,1,2}

The value of array at index 0 is = 3

similarly

value at index 1 = 10

value at index 2 = 44

Here, Int i = 1 is storing the value '1' in integer variable i.

In addition to that, any value of index 'i' of an array is selected using array[i].

Therefore,

val[i] = i-1 is copying the value (i-1 = 1-1 = 0) to the index '1'  of the array because i = 1.

So value at index 1 would be = val[1] = 0

The term i++ is incrementing the value of i, it makes i =2

val[i] = i-1 is copying the value (i-1 = 1-1 = 0) to the index '2' of the array because i = 2 now.

So value at index 2 would be = val[2] = 0

Hence, the output would be {3 0 0}. So 5th option is correct.

You might be interested in
Sales representatives want to capture custom feedback record details related to each Account. The sales reps want to accomplish
Tomtit [17]

Answer:

Create predefined values for most of the fields.

Create an object-specific action on Account

Explanation:

The sales reps would need to create predefined values for most of the fields, or they can create an object-specific action on account. In doing this, the sales reps will capture custom feedback record details related to each account and will accomplish this with minimal clicks on the Salesforce1 mobile app.

3 0
3 years ago
I need this done in c++ please.
MrMuchimi
Ok% your output is wrong maybe wrong change it
7 0
3 years ago
When purchasing a security program, you must make sure that _____. Select 2 options.
olganol [36]

Answer:

it is complex

employees are not involved

4 0
3 years ago
What is the purpose of Python’s Turtle Graphic Module?
Iteru [2.4K]

Answer:

The answer to this question is given below in the explanation section.

Explanation:

The correct answer to this question is Importing code to draw on the screen.

Python's Turtle Graphic Module is a graphic library in python that used for drawing. By using this library, you can draw various types of shapes and images. For example, you can draw lines, circles, square, and all different shapes using this library.

However, all other options are not correct because:

To calculate simple mathematical equations, you can do it using general programming. But if you want to do complex mathematics then you can Python Math Module but not Python's Turtle Graphic Module.

Also, the turtle graphic library dos not use for gathering input and to something print on the screen.

7 0
3 years ago
Read 2 more answers
Overload the + operator as indicated. Sample output for the given program:
melisa1 [442]

Answer:

FamilyVacation FamilyVacation::operator+(int moreDays) {

FamilyVacation copy = *this;

copy.numDays += moreDays;

return copy;

}

Explanation:

You create a copy (which is simple because the class contains no pointers), then you modify the copy and return it.

7 0
3 years ago
Other questions:
  • Write a function get_initials(the name) that takes a string of a name and returns the initials of the name, in upper case, separ
    12·1 answer
  • A bakery sells three types of muffins whose prices are as follows: 1- blueberry muffin, $2.98 2- chocolate chip muffin, $4.50 an
    6·1 answer
  • Rachel wants to post content from digital cameras on the web. Which online tool will help Rachel to post and edit content on a w
    5·1 answer
  • ____ is the security guarantee that people who intercept messages cannot read them. A. Availability B. Encryption C. Confidentia
    9·1 answer
  • Which tab should gemima use to open the formula dialog box
    13·2 answers
  • The term _____________ refers to software license agreements that are included within a box of physical-media software.
    9·1 answer
  • What is the command to list files in Unix and Unix like operating system?​
    15·1 answer
  • Which kind of image is indispensable and needs added text to go with it?
    7·1 answer
  • Type the correct answer in the box. Spell all words correctly.
    10·1 answer
  • You are an administrator of a growing network. You notice the network you have created is broadcasting, but you cannot ping syst
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!