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
Hunter-Best [27]
2 years ago
9

Assume that ip has been declared to be a pointer to int and that result has been declared to be an array of 100 elements . Assum

e further that ip has been initialized to point to an element in the first half of the array .Write an expression whose value is the sum of the element that ip points to plus the next two elements
Computers and Technology
1 answer:
Alenkasestr [34]2 years ago
7 0

Answer:

The expression for this question can be given as:

Expression:

ip + (ip + 1) + (*ip + 2)

Explanation:

In the question, it is given that the ip variable that is a pointer type variable has been declared and initialized. This variable result has been declared to be an array of 100 elements and it is also defined that the ip variable is an element of the first half of the array. So the expression of the sum of the elements that point the ip that is ip + (ip + 1) + (*ip + 2). In this expression, ip is a pointer variable that's value is increased by 1 and 2. and all the value will be added in the ip.  

You might be interested in
On the classic gameshow The Price Is Right, contestants must guess the price of an object (guesses are distinct). The winner is
Kruka [31]

Answer:

The program code is in explaination

Explanation:

Program code below.

def judge(auction,price):

"""

Function: Returns Name who auctioned very near to give price

Input :

auction : list of tuples

price : auction price

output: returns name of best auction amount holder

"""

diff = [] #storing differences between auctionist amount and price

count = 0

for each_pair in auction:

if each_pair[1]<=price:

diff.append(price-each_pair[1])

else:

count+=1

diff.append(each_pair[1])

if count == len(auction): #check for if no one have auctioned good amount

return None

else:

more_possibility_index = diff.index(min(diff)) #finding index of best amount from diff list

return auction[more_possibility_index][0]

auction = [('Alice',430),('Bob',538),('Carol',487),('David',550)]

price = 520

print(judge(auction,price))

I kept the output at the attachment.

3 0
2 years ago
Can someone please help me in answering this!?! <br> The language is C++
Llana [10]

Here is a somewhat cryptic solution that works:

#include <algorithm>

#include <cstdlib>

using namespace std;

void q(char c, int count)

{

for (int i = 0; i < count; i++) {

 putchar(c);

}

}

void p(int b1, int plusses)

{

q(' ', b1);

q('+', plusses);

}

int main()

{

for (int i = -3; i <= 3; i++)

{

 int pl = min(6, (3 - abs(i)) * 2 + 1);

 p(6-pl, pl);

 i == 0 ? p(0, 6) : p(6, 0);

 p(0, pl);

 putchar('\n');

}

getchar();

}


5 0
3 years ago
Which is the most portable memory media? Mention its features in detail.
scZoUnD [109]

Answer:

Flashdrive

Increased Durability. Unlike traditional hard-disk drives, flash drives lack moving parts. ...

Maximum Portability. ...

Plenty of Storage Capacity. ...

Fast Transfer Speeds. ...

Compatibility with Many Devices. ...

Use Flash Drives as Promotional Materials.

5 0
2 years ago
I need help with the rest also
dalvyx [7]

Answer:

??? blackkkkkkkkkkkkkkkkk

6 0
2 years ago
Why did we decide to send a message as a sequence of two options rather than modifying our devices to represent more options?
yaroslaw [1]

Answer:

Following are the solution to this question:

Explanation:

Please find the complete question in the attachment file.

The binary message is also an XML text SMS, which is used to represent in binary character. It may also flag the binary text as binary, and it can attach the UDH as just the start of its message. In this question, we assume that you can include A and B because there could be no more than 2 choices in such a binary message.

8 0
2 years ago
Other questions:
  • Translate each of these statements into logical expressions using predicates, quantifiers, and logical connectives. a) Something
    7·1 answer
  • In what country did true printing first take place?
    12·2 answers
  • Enter a formula using a database function to calculate the total value in the Cost column for expenses that meet the criteria in
    12·1 answer
  • Outlines are effective because
    13·2 answers
  • I prefer a job where I am praise for good performance or I am accountable for results
    13·1 answer
  • Help please! Coding!
    9·1 answer
  • 9.4 Code Practice: Your task is to determine whether each item in the array above is divisible
    14·1 answer
  • What does 69 mean?<br> Whenever I watch memes they always talk about the number 69
    8·2 answers
  • The image below shows an encoding for a black and white pixel image. The first two
    13·1 answer
  • Who designed the apple i computer in 1976?
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!