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
natulia [17]
3 years ago
10

When used as parameters, _________ variables allow a function to access the parameter’s

Computers and Technology
1 answer:
Mnenie [13.5K]3 years ago
3 0

Answer:  reference

Explanation:

In an function if the variables are passed as reference variables this means that the variables are pointing to the original arguments.So the changes made in the function on the reference variables will be reflected back on the original arguments.

For example:-

#include<iostream>

using namespace std;

void swap(&int f,&int s)

{

    int t=f;

    f=s;

   s =temp;

}

int main()

{

int n,m;

n=45;

m=85;

swap(n,m);

cout<<n<<" "<<m;

return 0;

}

the values of m and n will get swapped.

#include<iostream>

using namespace std;

void swapv(int f,int s)

{

    int t=f;

    f=s;

    s=temp;

}

int main()

{

int n,m;

n=45;

m=85;

swapv(n,m);

cout<<n<<" "<<m;

return 0;

}

In this program the values of m and n will not get swapped because they are passed by value.So duplicate copies of m and n will be created and manipulation will be done on them.

You might be interested in
When you call a ____________ method, it executes statements it contains and then returns a value back to the program statement t
Maksim231197 [3]

Answer:

The answer is a VOID method.

Explanation:

A void method is one that simply performs a task and then terminates.

4 0
4 years ago
Read 2 more answers
What does the R in the acronym SMART stand for??
jeyben [28]
Depending on who you ask, it is either Realistic or Relevant. Organizations that can't choose sometimes use the acronym SMARRT.
7 0
4 years ago
একটা ছবি কতটি কথার সমান?
OlgaM077 [116]

Answer:

একটি ছবির মূল্য 84.1 শব্দের

Explanation:

8 0
3 years ago
In an attack known as ____, valid protocol packets exploit poorly configured dns servers to inject false information to corrupt
ra1l [238]
The answer is DNS Cache Poisoning

Also known as DNS spoofing, this is a type of attack that exploits the Domain Name System to divert traffic away to legitimate servers. It inserts corrupt data into the cache database of the DNS server. In this attack, a hacker sends forged responses from an imposter DNS with an intention to reroute a domain name to a new IP address. This new IP is almost always controlled by the hacker.

       




6 0
4 years ago
An assignment notebook is important because that is where students
lesya [120]
I think it would be D

8 0
3 years ago
Read 2 more answers
Other questions:
  • Tasha purchased a new tablet. She has several questions about how to connect to the internet, download apps, install software, a
    5·1 answer
  • The ____ contains the computer's "brain," the central processing unit (CPU).
    5·2 answers
  • The process of bringing data or a file from one program to another is called
    13·2 answers
  • When is e-mail an appropriate channel for goodwill messages? If you frequently communicate with the receiver by e-mail and are c
    15·1 answer
  • A spreadsheet can be filtered only by one column at a time? <br> true or false
    14·2 answers
  • Sue needs to add a header and a footer to a presentation. Which process should she use to do this?
    10·2 answers
  • to access your course materials such as reading, textbooks, and other lesson content, it would be best to go to the?
    5·1 answer
  • alexa is scanning a photograph whitch mode should she use A green tone B blue tone C greyscale D sepia ​
    15·2 answers
  • Write a program to check whether the number is odd or even using 'if' statement in python
    13·1 answer
  • Complete the sentence.
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!