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
muminat
4 years ago
14

Below is the prototype for a function that takes two pointers to integer variables as its parameters. The purpose of the functio

n is to exchange the values stored in the integer variables to which the two pointers point. Consider the proposed implementation code for this function and select all options that would correctly accomplish the intent of the function.
void exchange ( int p, int q );

A) void exchange( int p, int q ) {
p = q;
q = p;}
B) void exchange( int p, int q ) {
p = q;
q = p;}
C) void exchange( int p, int q ) {
int temp = *p;
p = q;
*q = temp;}
D) void exchange( int p, int q ) { int *temp = p; p = q; q = temp;}
E) void exchange( int p, int q ){ int temp = p; p = q; q = *temp;}
Computers and Technology
1 answer:
Anvisha [2.4K]4 years ago
3 0

Answer:

The answer is "Option C".

Explanation:

In the given method prototype a method "exchange" is declared, which accepts two integer parameters, that is "p and q", and this method can't return any value because its return type is void. In the method definition time is defined, that both variables is a pointer type, that's  choices c is correct and others were wrong, that can be described as follows:

  • Option A and Option B both are wrong because it can't interchange the value.
  • Option D and Option E both option uses an integer pointer variable "temp", which is not defined in the question, that's why it is incorrect.  
You might be interested in
You can create a graphic from either an image or a string using different initializers True or false?
Bad White [126]

Answer:

It is obviously True

Explanation:

hope it helps .

3 0
3 years ago
Which option is not a tab type? center tab right tab hanging tab left tab
Gala2k [10]

Answer: C

Explanation:

6 0
3 years ago
Read 2 more answers
The type of wireless access that uses a modem to connect to cell towers is called ___
Alex_Xolod [135]

Answer:

What are the Wireless Broadband Technologies?

What are the Wireless Broadband Technologies?

Wireless broadband services are similar to wired broadband in that they connect to an internet backbone usually a fiber-optic trunk; however they don’t use cables to connect to the last mile or business/residences. Instead they use Wireless Fidelity (Wi-Fi) connections or radio waves. A computer or mobile device has a wireless adapter that translates data into a radio signal and transmits the signal using an antenna. A wireless router receives the signal, decodes it and then sends it to the Internet through a wired Ethernet connection.

Fixed wireless is a type of high-speed Internet access where connections to service providers use radio signals rather than cables. Fixed wireless offers connections speeds between 1 and 10 mbps and use transmission towers similar to cell phone towers that communicate to a resident’s transceiver equipment that, as the name implies is fixed at the premise. The transceiver equipment communicates with the providers’ ground stations.

Wireless fidelity (Wi-Fi) is a fixed, short-range technology that is often used in combination with DSL, fixed wireless, fiber, or cable modem service to connect devices within a home or business to the Internet using a radio link between the location and the service provider’s facility. Wi-Fi service can be available in your home or at community locations (airports, coffee shops, schools, businesses, etc.) and are often called “hotspots.” A Wi-Fi network uses radio waves, similar to two-way radio communications. A computer has a wireless adapter that translates data into a radio signal and transmits it using an antenna. A router receives the signal, decodes it, and then sends the information to the Internet using a physical connection, usually via an Ethernet cable, a cable that carries the broadband signal between the modem, router, computer, and other wired Internet capable devices.

Mobile Wireless (3G, 4G)

Mobile wireless is high-speed wireless broadband connection that is accessible from random locations. The locations depend on the provider’s cellular towers and monthly service plans. Many technologies make up wireless networks, but no matter the technology or acronyms you read or hear, mobile wireless networks are radio systems.

Mobile wireless services are continually being upgraded to provide data transmission speeds considered to be broadband. The faster mobile wireless networks are referred to as 3G or 4G.The “G” stands for “generation,” meaning 3rd and 4th generation or the evolution of broadband cellular networks; supposedly, each generation provides a faster more secure wireless network. A mobile wireless service requires a base station that is connected to a high capacity landline data transmission network to reach the Internet. In other words, it’s never wired OR wireless; ultimately, it has to be both. Wireless broadband in common usage means that the so-called “last mile” connection to the user is done via radio signals from a tower to a cell phone or other wireless devices (e.g., a tablet).

Long Term Evolution (LTE)

LTE is a 4G technology provides increased peak data rates, reduced latency, scalable bandwidth capacity than 4G predecessors. LTE can manage multi-cast and broadcast streams and handle quick-moving mobile phones. It uses an IP-based network architecture that allows for seamless handovers for voice and data to older model cell towers.

Satellite

Satellite broadband is sometimes the only option available to users in very rural or sparsely populated areas. Like telephone and television services, satellites orbiting the earth provide necessary links for broadband. With satellite service, you must have a clear view of the southern sky. Satellite service can be disrupted by weather conditions and changes in line of sight to the orbiting satellite. Satellite may have a higher monthly service charge than other broadband options and the need to purchase more home or business equipment compared to the other options. Because satellites are located a significant distance from customers, there are issues of “latency” and therefore a noticeable time lag between sending and receiving data by the end customer.

Downstream and upstream speeds for satellite broadband depend on several factors, including the provider and service package purchased the consumer’s line of sight to the orbiting satellite, and the weather. Satellite speeds may be slower than DSL and cable modem, but they can be about 10 times faster than the download speed with dial-up Internet access. Service can be disrupted in extreme weather conditions.

Source: Information from Wisconsin’s Broadband Reference Guide produced by: WI Public Service Commission, UW-Extension Madison, and the Center for Community Technology Solutions, January 2014

Explanation:

8 0
3 years ago
The sequence's insert member function normally puts a new item before the current item. What should insert do if there is no cur
igomit [66]

Answer:

B) The new item is put at the beginning of the sequence

Explanation:

The stack data structure is an example of the type for insert method as the current items are replaced at the top by a new item and the previous items move down the stack. If there no current item in the stack, the new item is put in the first index (beginning point) of the stack data structure.

5 0
3 years ago
How to see the range of values of vty lines?
PSYCHO15rus [73]

Answer:

To get the range of very lines in a switch or a router, in the global mode, type " line very" and the question mark after the space. It displays the ranges of valid very lines in the device.

Explanation:

Routers and switches are intermediate components of a computer network. They are used to connect various nodes and networks. For a remote connection, they use the virtual interface called vty to connect to computers for management purposes. These vty lines allows for SSH and telnet access from workstations and the range of very lines are predetermined and limited and varies for all switches and routers.

7 0
4 years ago
Other questions:
  • Technician A says a modern automobile has more than 1 mile of wiring. Technician B says there could be more than 1,000 individua
    15·1 answer
  • What age group is experiencing the most growth in social media
    13·1 answer
  • Where is a 3D modeler most likely to work?
    6·1 answer
  • _________________________ was designed to provide devices with a method for notifying each other that a link is experiencing con
    15·1 answer
  • ____ technology is the same as that used in digital watches, or the time display on a microwave oven
    14·1 answer
  • The 10 IISSCC _____ cover 17 NIST control _____ which are arranged in three _____ called management, operational, and technical.
    13·2 answers
  • The program DebugTwo2.cs has syntax and/or logical errors. Determine the problem(s) and fix the program.// This program greets t
    5·1 answer
  • Anybody know #3 ? I need two ppl to answer this !! Free Brainliest!!
    14·2 answers
  • Most computers include a network card designed to connect a computer to the net using standard telephone service. True or False?
    11·1 answer
  • One subtask in the game is to ‘refuel a car’. Explain why ‘refuel a car’ is an abstraction.
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!