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
Brut [27]
3 years ago
7

Create a method called ReadString that will ask the user for a string. Instead of returning the value like in ReadInteger, you s

hould use pass by reference to get the string back to the caller.
Computers and Technology
1 answer:
Usimov [2.4K]3 years ago
4 0

Answer:

public void ReadString (string inputString, ref string word)

{

   Console.WriteLine(inputString);

   word = Console.ReadLine();

}

Explanation:

The C# function above is defined as a class method that accepts two arguments, the inputString and the word. The first block code outputs the string message of the first string argument, 'inputString', then the second block reads the input and assigns it to the second argument 'word'. The 'ref' keyword is used as a return statement to return the word variable.

You might be interested in
A _____ is often used in Access to present a menu with command buttons that end users can click to perform various database acti
alexandr402 [8]

Answer:

Navigation form

Explanation:

7 0
4 years ago
The algorithm ____ is used to find the elements in one range of elements that do not appear in another range of elements.
Musya8 [376]

Answer:

A. set_union

Explanation:

The algorithm set_union is used to find the elements in one range of elements that do not appear in another range of elements.

4 0
3 years ago
What shortcut keys do i use to print something on my keyboard ?
romanna [79]
CTRL+P. It's usually pressed when you want to print something.
5 0
3 years ago
Read 2 more answers
What is the home enabled button view id in toolbar in android?
DaniilM [7]
The home enabled button takes you back to your main screen
6 0
3 years ago
Which of the following is probably not a place where it is legal to download the music of a popular artist whose CDs are sold in
nignag [31]

Answer:

A. Personal blogs

Explanation:

I did the quick check, and there you go...it's A.

5 0
3 years ago
Other questions:
  • How it print media used? ​
    9·1 answer
  • I need to create a function that returns Pascal's Triangle with n rows, where n is an int argument.
    12·1 answer
  • In cell R9, enter a formula using the AVERAGEIF function to determine the average number of years of experience for lifeguards.
    12·1 answer
  • State the rule of 72 for the number of years to halve.
    8·1 answer
  • List the steps you took to configure SERVERC and take a screen shot of the Connect to DNS Server dialog box by pressing Alt+Prt
    11·1 answer
  • Peter took a selfie in his room. He was a wearing a light blue shirt. But he failed to realize that that shirt would clash in co
    12·2 answers
  • I have a variable and set it equal to 5. 1 then send it as an argument to a function that adds 5 to the variable passed in. Outs
    9·1 answer
  • ELO 3.6 Which type of iSCSI name requires a registered domain name to generate a unique iSCSI identifier?
    12·1 answer
  • Select all that apply.<br> What two things can you do to display the entire contents of a cell?
    12·1 answer
  • Discuss the core technologies and provide examples of where they exist in society. Discuss how the core technologies are part of
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!