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
pickupchik [31]
3 years ago
8

Consider the following function definition. void strange(int& u, char& ch) { int a; a = u++; u = 2 * u; a = static_cast(

ch); a++; ch = static_cast(a); } What are the values of one and letter after the following statements execute? int one = 5; char letter = 'A'; strange(one, letter);
Computers and Technology
1 answer:
valentinak56 [21]3 years ago
3 0

Answer:

The output to this question is "one = 12; letter = 'B' ".

Explanation:

In the given code we define a method that is "strange" in this method we pass two variable that is "u and ch" where u is an integer variable and ch is character variable. Inside a method, we declare an integer variable that is "a" we use this variable 2 times.  

  • The first time we use variable a that increases the value of variable u by 1 and multiply by 2. and print its value.  
  • second time we use this variable (a) This time we use this for hold char variable value and increase the variable value by using type casting and print its value.  

In calling time we pass value "5 and A " it will return "12 and B".

You might be interested in
The marketplace for computer hardware:________ 1. has become increasingly concentrated in top firms 2. has expanded to include a
yawa3891 [41]

Answer:

the answer should be 1.

3 0
4 years ago
Read 2 more answers
Which statement is true about wikis? Wikihow is an online dictionary that aims to define words. A wiki cannot be used in an orga
True [87]
The true statement abt Wikis is "<span>Among Wikipedians, editors can grant or remove administrator rights."</span>
8 0
3 years ago
Read 2 more answers
Explain the unique reason why assember language is perfered to high level language
Zigmanuir [339]

The unique reason why assembler language is preferred to high level language is that  It is said to be memory efficient and it is one that requires less memory.

<h3>Why is assembly language better than other kinds of high level?</h3>

It implies means that the programs that one uses to write via the use of high-level languages can be run easily on any processor that is known to be independent of its type.

Note that it is one that has a lot of  better accuracy and an assembly language is one that carries out a lot of better functions than any high-level language, in all.

Note also that the advantages of assembly language over high-level language is in terms of its Performance and accuracy as it is better than high-level language.

Hence, The unique reason why assembler language is preferred to high level language is that  It is said to be memory efficient and it is one that requires less memory.

Learn more about assembler language from

brainly.com/question/13171889

#SPJ1

3 0
2 years ago
Why a design that doesn't fail initially fails after some time/use? identify at least 3 such mechanisms?
alina1380 [7]
Runs out of memory
has uninitialized    variables
uses  undefined behaviour

4 0
3 years ago
A cell reference in a formula allows you to point to another cell location
mario62 [17]

The cell reference refers to a cell on a worksheet and can be used in a formula to point another location.

Explanation:

A cell reference is a range of cells on a worksheet that can be used in a formula to find the values or data you want to calculate using that formula.

There are two types of cell references relative and absolute. they both behave differently when copied to other cells. Relative references change when a formula is copied to another cell.

Absolute reference remains constant even if they are copied. In a formula multiplications are performed before subtraction.

It does not change when the formula is copied or moved to another cell.

6 0
4 years ago
Read 2 more answers
Other questions:
  • In a case where electrical current leakage from the circuit occurs,
    7·2 answers
  • Give some examples of CyberCrime
    9·1 answer
  • Create a structure named planet This structure will contain distance from Earth as an integer Atmosphere, language, people and p
    8·1 answer
  • If a person sends email from a school computer or a business computer, should that message be considered private?
    8·2 answers
  • What does this result prove about the computer’s network connectivity?
    12·1 answer
  • echnician A says that underinflation can increase the rolling resistance of a tire. Technician B says that underinflation can ca
    9·1 answer
  • Next, Leah wants to add a content slide that allows her to insert a table.
    8·2 answers
  • Memory cache is referred to as ______. A. SRAM c. SROM b. DRAM d. DROM
    11·1 answer
  • Which of the following is true regarding the use of instance variable j in class B1?
    15·1 answer
  • Question #5
    15·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!