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
Which one of the following statements referring to mobile Internet
zhenek [66]

Answer: All are true

Explanation:

6 0
4 years ago
Read 2 more answers
How can edge computing be used to increase sustainability
nika2105 [10]

Edge computing be used to increase sustainability With Edge Computing the number of records traversing the network can be reduced greatly, freeing up bandwidth.

<h3>How is part computing sustainable?</h3>

Data centers devour an expected 2 hundred terawatt-hours (TWh) of power every year–extra than the power intake of a few countries. They additionally produce an expected 2% of all worldwide CO2 emissions. Edge Computing reduces network site visitors and records centre usage.

Data centres devour an expected 200 terawatt-hours (TWh) of power every year–extra than the power intake of a few countries. They additionally produce an expected 2% of all worldwide CO2 emissions.

Read more about the sustainability:

brainly.com/question/25350238

#SPJ1

4 0
2 years ago
Identify a logical operation (along
tankabanditka [31]

Answer: Provided in the explanation section

Explanation:

The Question says;

Identify a logical operation (along

with a corresponding mask) that, when

applied to an input string of 8 bits,

produces an output string of all 0s if and

only if the input string is 10000001.​

The Answer (Explanation):

XOR, exclusive OR only gives 1 when both the bits are different.

So, if we want to have all 0s, and the for input only 10000001, then we have only one operation which satisfies this condition - XOR 10000001. AND

with 00000000 would also give 0,

but it would give 0 with all the inputs, not just 10000001.

Cheers i hope this helped !!

3 0
4 years ago
What are the four main types of section breaks? Check all that apply.
Romashka-Z-Leto [24]
The answer would be next page, continuous, even page, and odd page.
5 0
3 years ago
Read 2 more answers
Heelp my brainly stuff says i am 49 but im 11 how to fix?X??
stich3 [128]

Make another account. But u cant get into brainly unless u r over 26 or something.

6 0
3 years ago
Other questions:
  • A must decode this code. I guess is not a Cesar. The last line is a email adress.
    15·1 answer
  • Jemima is reviewing her history report and notices that her headings are not formatted the same throughout the report. She wants
    5·2 answers
  • State two ways a local area network can be used to monitor the work of employees
    11·1 answer
  • What were thomas edison's contributions to advances in technology?
    9·1 answer
  • How to do this question , please answer quickly , I’ll give branliest
    14·1 answer
  • True or false: It can take some time for the labs to load once you click “start lab.”
    7·1 answer
  • Input a list of positive numbers, terminated by 0, into an array Numbers[]. Then display the array and the largest and smallest
    11·1 answer
  • Which is the first computer brought in nepal for the census of 2028 B.S​
    6·1 answer
  • program that initialises a vector with the following string values: “what” “book” “is” “that” “you” “are” “reading”.
    15·1 answer
  • Data mining requires specialized data analysts to ask ad hoc questions and obtain answers quickly from the system. select one: t
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!