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
sashaice [31]
4 years ago
5

A have a string, called "joshs_diary", that is huge (there was a lot of drama in middle school). But I don't want every one to k

now that this string is my diary. However, I also don't want to make copies of it (because my computer doesn't have enough memory). Which of the following lines will let me access this string via a new name, but without making any copies?
a. std::string book = joshs_diary;
b. std::string & book = joshs_diary; const
c. std::string * book = &joshs_diary;
d. std::string book(joshs_diary);
e. const std::string & book = joshs_diary;
f. const std::string * const book = &joshs_diary;
g. std::string * book = &joshs_diary;
Computers and Technology
1 answer:
Norma-Jean [14]4 years ago
5 0

Answer:

C and G

Explanation:

In C language, the asterisks, ' * ', and the ampersand, ' & ', are used to create pointers and references to pointers respectively. The asterisks are used with unique identifiers to declare a pointer to a variable location in memory, while the ampersand is always placed before a variable name as an r_value to the pointer declared.

You might be interested in
Which factor can hinder problem solving?
Bess [88]

Answer:

Thinking like a Child

Explanation:

Bruh moment

8 0
4 years ago
A system administrator is selecting an operating system for use by the company's research and development team. The team require
ruslelena [56]

Answer:

Linux

Explanation:

Linux is a family of open source operating system and can be easily modified and changed to meet its particular requirements. Linux is one the most used operating systems on servers, mainframe computers and even super computers. Being a free and open source system, it can be modified and distributed for both commercial and non commercial by anyone under the terms of its licence.

6 0
4 years ago
I want to work on cloud computing and i need some help on how to start ?
ddd [48]
A great website that might be able to help is https://www.cybrary.it/

Hope this helps.

6 0
4 years ago
B. Earthquake Warnings
Vedmedyk [2.9K]

Answer:

idu

Explanation:

4 0
3 years ago
Where can i answer other questions
vodomira [7]
You click into answer at the top next to "ask" where you clicked into to ask this q
6 0
3 years ago
Other questions:
  • Rainbow six siege imi da ecran negru.Ce sa fac?
    12·1 answer
  • "A file named numbers.txt contains an unknown number of lines, each consisting of a single integer. Write some code that compute
    9·1 answer
  • - The concept of communication competence suggests there is no single "ideal" or "effective" way to communicate in every situati
    6·2 answers
  • Which type of systems development is characterized by significantly speeding up the design phase and the generation of informati
    11·1 answer
  • Project: Math Tutor Program with Error Handling
    9·2 answers
  • A set of blocks contains blocks of heights 1,2, and 4 centimeters. Imagine constructing towers of piling blocks of different hei
    15·1 answer
  • In what ways is the human brain like a computer? In what ways is it different?
    14·2 answers
  • Explain why analogue to digital conversion is needed when computers are used in monitoring and measuring
    15·1 answer
  • Denelle, an accountant, needs to present her client Stephen with a page showing how his yearly retirement savings will be affect
    11·1 answer
  • Different between embedded computer &amp;<br> Micro controllers
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!