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
dem82 [27]
2 years ago
8

The commented line states that I have assigned a 2D array to a pointer but I want array of such pointers which could store numbe

rs of 2D Array.

Computers and Technology
2 answers:
solong [7]2 years ago
7 0

It is impossible to store numbers or contents of 2D array to a pointer array.

<h3>How to store pointers in 2D Arrays?</h3>

Arrays and pointers are different data structure elements, and there is a limit to the operations that can be performed on both.

Having said that, it is impossible to store numbers or contents of 2D array to a pointer array.

The closest you can do, is to use the following declaration:

int *p[] = {(array-type [][number of columns]) {Array-content}}

Read more about arrays and pointers at:

brainly.com/question/17355709

#SPJ1

Artemon [7]2 years ago
6 0

Answer:

Get the element => *( (int *)aiData + offset ); calculate offset => offset = (1 * coloumb_number)+ 2); Add offset in array base address => (int *)aiData + offset; //here typecast with int pointer because aiData is an array of integer Get the element => *( (int *)aiData + offset );

You might be interested in
Questlon 5 of 25
Solnce55 [7]

Answer:

sorry maam/sir i wish i could help but i dont know how to answer that

Explanation:

because im middle school

3 0
3 years ago
A router has just received the following new IP addresses: 88.62.108.0/21, 88.62.116.0/21, 88.62.120.0/21 and 88.62.128.0/21. If
Natali [406]

Answer:

Yes, they can be aggregated into a single network address of 88.62.0.0/16

Explanation:

Since they all will be using the same outgoing interface so they can be grouped according to next hop which appears to be the same for all four IP address.

First convert all the network addresses into binary.

DECIMAL                      BINARY                                                      CLASS OF IP

88.62.108.0/21            01011000.00111110.01101100.00000000      Class A

88.62.116.0/21             01011000.00111110.01110100.00000000     Class A

88.62.120.0/21            01011000.00111110.01111000.00000000     Class A

88.62.128.0/21           01011000.00111110.10000000.00000000    class A

Looking at the binary form of the address from left to right it can be observed that all for address are identical in the first two octet, that is up to the 16th digit.

So the new subnet mask will be /16, using any of the four address and the /16 mask will can obtain the new network address

All four address can be summarized as 88.62.0.0/16

4 0
3 years ago
What is output?
andriy [413]

Answer:

The output of the following code is 3.

Explanation:

In the following Python Programming Language, the output is 3 because the variable x is equal to 21, then the user check the condition is the variable x is greater than 21 then print it print 1, otherwise the user check that the variable x is less than 21 then print 2, otherwise it print 3. So, the variable x is not greater than 21 or not less than 21, it is equal to 21. That's why the code execute the else block and print 3.

6 0
3 years ago
JAVA CHALLENGE ZYBOOKs
exis [7]

Answer:

Replace  /* Your solution goes here */ with:

<em>System.out.println(randGen.nextInt(49) + 100);</em>

<em>System.out.println(randGen.nextInt(49) + 100);</em>

<em />

Explanation:

Required

Statements to print two random numbers between 100 and 149 (both inclusive)

First, the random numbers must be generated. From the template given, the random object, randGen, has been created.

The syntax to then follow to generate between the interval is:

<em>randGen.nextInt(high-low) + low;</em>

Where:

high = 149 and low = 100

So, the statement becomes:

<em>randGen.nextInt(149 - 100) + 100;</em>

<em>randGen.nextInt(49) + 100;</em>

<em />

Lastly, print the statements:

<em>System.out.println(randGen.nextInt(49) + 100);</em>

<em>System.out.println(randGen.nextInt(49) + 100);</em>

<em />

5 0
3 years ago
Which key retains its uniqueness even after you remove some of the fields?
Natasha_Volkova [10]

Answer:

Primary key retains its uniqueness even after you remove some of the fields.

Explanation:

I am assuming that this question is related to database. Therefore, I am answering it according to database context.

In database, you can have multiple rows and columns. Each column shows a specific attribute while each row plots the data according to the attributes. However, there is the first column of each of main table that has unique set of values. It is called the Primary Key. Some key features of primary key are:

  • It always contains the unique value.
  • Its value cannot be null.
  • A table can have at max one primary key.
  • It can be the combination of multiple columns but it must be unique.

Therefore, the primary key has the ability to retain its uniqueness even after you remove some of the fields.

8 0
4 years ago
Other questions:
  • Which type of spreadsheet cell represents the left hand sides (lhs) formulas in an optimization analysis?
    5·1 answer
  • The R1 shell opens in a terminal window with black text and white background. What user is logged into
    8·1 answer
  • The advantages of the dynamo
    15·1 answer
  • 1. Pasar los siguientes ejercicios a diagrama de bloque
    11·1 answer
  • What is the iterative procedure of recursive and nonrecursive?
    10·1 answer
  • What is an OS? Explain the objectives of an OS.​
    11·1 answer
  • Write a pseudocode for the logic of a program that accepts five numbers from a user and displays one of the following messages:-
    8·1 answer
  • The. Model has the disadvantage of high project cost due to creation several prototypes
    6·1 answer
  • Beth is a software developer who is focused on identifying early-stage interface problems. Beth addresses the dimension of usabi
    11·1 answer
  • Which remote access role service allows publishingweb-based applications for use by clients outside thenetwork?
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!